com.mindbright.nio
public interface NIOCallback
Switchboard
,
NetworkConnection
,
NonBlockingInput
Modifier and Type | Method and Description |
---|---|
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
|
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.