public interface ChannelManager
| Modifier and Type | Method and Description |
|---|---|
void |
finishClose(java.lang.Object inTaskFinished)
Called by tasks to indicate that they have finished reading and writing.
|
void |
finishConnect(ChannelAddress inAddress,
ChannelProtocol inProtocol)
Finish the connection process by updating the address and protocol.
|
ChannelAddress |
getAddress() |
java.nio.channels.ByteChannel |
getChannel() |
ChannelProtocol |
getProtocol() |
boolean |
isReadable() |
boolean |
isWritable() |
void |
requestClose()
Stop reader and writer tasks and close the channel.
|
void |
wakeup()
Wake up reader and writer tasks.
|
boolean isReadable()
boolean isWritable()
ChannelAddress getAddress()
java.nio.channels.ByteChannel getChannel()
ChannelProtocol getProtocol()
void finishConnect(ChannelAddress inAddress, ChannelProtocol inProtocol) throws ConnectException
inAddress - - The remote address.inProtocol - - The protocol for this address.java.io.IOExceptionConnectExceptionvoid wakeup()
throws ConnectException
java.io.IOExceptionConnectExceptionvoid requestClose()
void finishClose(java.lang.Object inTaskFinished)
inTaskFinished - - The task that has finished and is closed.