public interface CloseableChannel extends java.nio.channels.InterruptibleChannel, Configurable
EMPTY
Modifier and Type | Method and Description |
---|---|
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.
|
XnioIoThread |
getIoThread()
Get the I/O thread associated with this channel.
|
XnioWorker |
getWorker()
Get the worker for this channel.
|
getOption, setOption, supportsOption
ChannelListener.Setter<? extends CloseableChannel> getCloseSetter()
XnioWorker getWorker()
XnioIoThread getIoThread()
void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface java.nio.channels.Channel
close
in interface java.io.Closeable
close
in interface java.nio.channels.InterruptibleChannel
java.io.IOException
- if the close failedCopyright © 2016 JBoss, a division of Red Hat, Inc.