|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
S - public interface ChannelWrapper<S>
Interface for a set of abstractions wrapping different communication channels into a common semantic.
| Method Summary | |
|---|---|
void |
close()
Close the channel. |
S |
getChannel()
Get the channel to wrap. |
NioContext<?> |
getContext()
Get the AbstractNioContext attached to the channel. |
int |
getKeyOps()
Get the operations enabled for this channel. |
int |
getReadyOps()
Get the operations available for this channel. |
ChannelSelector |
getSelector()
Get the selector associated with this channel. |
boolean |
isAcceptable()
Determine whether the channel can accept connections. |
boolean |
isConnectable()
Determine whether the channel can be connected. |
boolean |
isOpen()
Determine whether the channel is opened. |
boolean |
isReadable()
Determine whether the channel can be read from. |
boolean |
isWritable()
Determine whether the channel can be written to. |
void |
setKeyOps(int keyOps)
Get the operations enabled for this channel. |
void |
setSelector(ChannelSelector selector)
Set the selector associated with this channel. |
| Method Detail |
|---|
S getChannel()
void close()
throws Exception
Exception - if any error occurs while closing the channel.NioContext<?> getContext()
AbstractNioContext attached to the channel.
AbstractNioContext instance.boolean isOpen()
int getKeyOps()
void setKeyOps(int keyOps)
keyOps - the operations as an int value.int getReadyOps()
boolean isReadable()
boolean isWritable()
boolean isAcceptable()
boolean isConnectable()
ChannelSelector getSelector()
LocalChannelSelector instance.void setSelector(ChannelSelector selector)
selector - a LocalChannelSelector instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||