|
XNIO API 3.0.7.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CloseableChannel
A channel which is closeable. A listener may be registered which is triggered (only once) on channel close.
| Method Summary | |
|---|---|
void |
close()
Close this channel. |
ChannelListener.Setter<? extends CloseableChannel> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel. |
XnioWorker |
getWorker()
Get the worker for this channel. |
| Methods inherited from interface java.nio.channels.Channel |
|---|
isOpen |
| Methods inherited from interface org.xnio.channels.Configurable |
|---|
getOption, setOption, supportsOption |
| Method Detail |
|---|
ChannelListener.Setter<? extends CloseableChannel> getCloseSetter()
XnioWorker getWorker()
void close()
throws IOException
close in interface Channelclose in interface Closeableclose in interface InterruptibleChannelIOException - if the close failed
|
XNIO API 3.0.7.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||