|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NIOCallback
Defines callback methods for non blocking io operations.
Switchboard
,
NetworkConnection
,
NonBlockingInput
Method Summary | |
---|---|
void |
completed(java.nio.ByteBuffer buf)
Called once the network read operation has been completed |
void |
connected(boolean timeout)
Called once the connection has been established (assuming interest for this has been registered by calling the NotifyWhenConnected method of Switchboard ). |
void |
connectionFailed(java.lang.Exception e)
Called if the connection failed (assuming interest for this has been registered by calling the NotifyWhenConnected method of Switchboard ). |
void |
readFailed(java.lang.Exception e)
Called if the read failed |
void |
writeFailed()
Called if the write failed |
Method Detail |
---|
void completed(java.nio.ByteBuffer buf)
buf
- the buffer provided to the read callvoid readFailed(java.lang.Exception e)
void writeFailed()
void connected(boolean timeout)
NotifyWhenConnected
method of Switchboard
).
timeout
- true if the connection attempt timed outvoid connectionFailed(java.lang.Exception e)
NotifyWhenConnected
method of Switchboard
).
e
- the exception the connection failed with.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |