diff options
author | Benoit Foucher <benoit@zeroc.com> | 2007-11-27 11:58:35 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2007-11-27 11:58:35 +0100 |
commit | 47f800495093fd7679a315e2d730fea22f6135b7 (patch) | |
tree | a7b8d3488f3841367dd03d10cae293f36fd10481 /java/src/IceInternal/EventHandler.java | |
parent | Fixed SystemException to no longer derive from LocalException (diff) | |
download | ice-47f800495093fd7679a315e2d730fea22f6135b7.tar.bz2 ice-47f800495093fd7679a315e2d730fea22f6135b7.tar.xz ice-47f800495093fd7679a315e2d730fea22f6135b7.zip |
- Added support for non-blocking AMI/batch requests, connection
creation.
- Added support for AMI oneway requests.
- Changed collocation optimization to not perform any DNS lookups.
Diffstat (limited to 'java/src/IceInternal/EventHandler.java')
-rw-r--r-- | java/src/IceInternal/EventHandler.java | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/java/src/IceInternal/EventHandler.java b/java/src/IceInternal/EventHandler.java index 3a0ed6231a2..11241725083 100644 --- a/java/src/IceInternal/EventHandler.java +++ b/java/src/IceInternal/EventHandler.java @@ -25,12 +25,17 @@ public abstract class EventHandler // Read data via the event handler. May only be called if // readable() returns true. // - // NOTE: In Java, read returns true if the handler has more data - // data available, and therefore read should be called again. - // abstract public boolean read(BasicStream is); // + // In Java, it's possible that the transceiver reads more data + // than what was really asked. If this is the case, hasMoreData() + // returns true and the handler read() method should be called + // again (without doing a select()). + // + abstract public boolean hasMoreData(); + + // // A complete message has been received. // abstract public void message(BasicStream stream, ThreadPool threadPool); @@ -68,7 +73,8 @@ public abstract class EventHandler protected Instance _instance; // - // The _stream data member is for use by ThreadPool only. + // The _stream data member is only for use by the ThreadPool or by the + // connection for validation. // - BasicStream _stream; + protected BasicStream _stream; } |