diff options
author | Marc Laukien <marc@zeroc.com> | 2002-11-27 21:54:20 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-11-27 21:54:20 +0000 |
commit | 8042456879b8fde8683df20274e7dc887a1e6737 (patch) | |
tree | f8ef3dc13589e6610e5473d5e5319125af2ee754 /java/src/IceInternal/Outgoing.java | |
parent | added ami (diff) | |
download | ice-8042456879b8fde8683df20274e7dc887a1e6737.tar.bz2 ice-8042456879b8fde8683df20274e7dc887a1e6737.tar.xz ice-8042456879b8fde8683df20274e7dc887a1e6737.zip |
various changes
Diffstat (limited to 'java/src/IceInternal/Outgoing.java')
-rw-r--r-- | java/src/IceInternal/Outgoing.java | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/java/src/IceInternal/Outgoing.java b/java/src/IceInternal/Outgoing.java index 23b3bee1aa8..e3bb782ce1e 100644 --- a/java/src/IceInternal/Outgoing.java +++ b/java/src/IceInternal/Outgoing.java @@ -57,7 +57,7 @@ public final class Outgoing // Returns true if ok, false if user exception. public boolean invoke() - throws Ice.LocationForward, NonRepeatable + throws NonRepeatable { _os.endWriteEncaps(); @@ -137,12 +137,6 @@ public final class Outgoing return false; } - if(_state == StateLocationForward) - { - Ice.ObjectPrx p = _is.readProxy(); - throw new Ice.LocationForward(p); - } - assert(_state == StateOK); break; } @@ -167,7 +161,7 @@ public final class Outgoing // illegal. // _state = StateInProgress; - _connection.finishBatchRequest(this); + _connection.finishBatchRequest(_os); break; } } @@ -178,6 +172,10 @@ public final class Outgoing public synchronized void finished(BasicStream is) { + // + // The state might be StateLocalException if there was a + // timeout in invoke(). + // if(_state == StateInProgress) { _is.swap(is); @@ -209,12 +207,6 @@ public final class Outgoing break; } - case DispatchStatus._DispatchLocationForward: - { - _state = StateLocationForward; - break; - } - case DispatchStatus._DispatchObjectNotExist: case DispatchStatus._DispatchFacetNotExist: case DispatchStatus._DispatchOperationNotExist: @@ -311,6 +303,10 @@ public final class Outgoing public synchronized void finished(Ice.LocalException ex) { + // + // The state might be StateLocalException if there was a + // timeout in invoke(). + // if(_state == StateInProgress) { _state = StateLocalException; @@ -340,14 +336,14 @@ public final class Outgoing case Reference.ModeOneway: case Reference.ModeDatagram: { - _connection.prepareRequest(this); + _connection.prepareRequest(_os); break; } case Reference.ModeBatchOneway: case Reference.ModeBatchDatagram: { - _connection.prepareBatchRequest(this); + _connection.prepareBatchRequest(_os); break; } } @@ -391,9 +387,8 @@ public final class Outgoing private static final int StateUnsent = 0; private static final int StateInProgress = 1; private static final int StateOK = 2; - private static final int StateLocationForward = 3; - private static final int StateUserException = 4; - private static final int StateLocalException = 5; + private static final int StateUserException = 3; + private static final int StateLocalException = 4; private int _state; private BasicStream _is; |