| Modifier and Type | Field and Description |
|---|---|
| private final ChannelListener. | |
| private final ChannelListener | |
| private final SuspendableReadChannel | |
| private volatile int | |
| private static final AtomicIntegerFieldUpdater | |
| private final SuspendableWriteChannel |
| Access | Constructor and Description |
|---|---|
| public | AssembledChannel(final SuspendableReadChannel
the read side readChannel, final SuspendableWriteChannel the write side writeChannel)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public ChannelListener. | getCloseSetter()
Implements org. Get the setter which can be used to change the close listener for this channel. |
| public XnioIoThread | getIoThread()
Implements org. Get the I/O thread associated with this channel. |
| public <T> T | getOption(final Option<T>
the option to get option)Implements org. Get the value of a channel option. |
| public XnioWorker | getWorker()
Implements org. Get the worker for this channel. |
| public boolean | |
| private static <T> T | |
| public <T> T | setOption(final Option<T>
the option to set option, final T the value of the option to set value)Implements org. Set an option for this channel. |
| public boolean | supportsOption(final Option<?>
the option option)Implements org. Determine whether an option is supported on this channel. |
| closeSetter | back to summary |
|---|---|
| private final ChannelListener. | |
| listener | back to summary |
|---|---|
| private final ChannelListener<CloseableChannel> listener | |
| readChannel | back to summary |
|---|---|
| private final SuspendableReadChannel readChannel | |
| state | back to summary |
|---|---|
private volatile int state
| |
| stateUpdater | back to summary |
|---|---|
| private static final AtomicIntegerFieldUpdater<AssembledChannel> stateUpdater | |
| writeChannel | back to summary |
|---|---|
| private final SuspendableWriteChannel writeChannel | |
| AssembledChannel | back to summary |
|---|---|
| public AssembledChannel(final SuspendableReadChannel readChannel, final SuspendableWriteChannel writeChannel) Construct a new instance.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements org. Doc from org. Close this channel. When a channel is closed, its close listener is invoked. Invoking this method more than once has no additional effect.
| |
| getCloseSetter | back to summary |
|---|---|
| public ChannelListener. Implements org. Doc from org. Get the setter which can be used to change the close listener for this channel. If the channel is already closed, then the listener will not be called.
| |
| getIoThread | back to summary |
|---|---|
| public XnioIoThread getIoThread() Implements org. Doc from org. Get the I/O thread associated with this channel.
| |
| getOption | back to summary |
|---|---|
| public <T> T getOption(final Option<T> option) throws IOException Implements org. Doc from org. Get the value of a channel option.
| |
| getWorker | back to summary |
|---|---|
| public XnioWorker getWorker() Implements org. Doc from org. Get the worker for this channel.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements java. Doc from java. Tells whether or not this channel is open.
| |
| nonNullOrFirst | back to summary |
|---|---|
| private static <T> T nonNullOrFirst(T one, T two) | |
| setOption | back to summary |
|---|---|
| public <T> T setOption(final Option<T> option, final T value) throws IllegalArgumentException, IOException Implements org. Doc from org. Set an option for this channel. Unsupported options are ignored.
| |
| supportsOption | back to summary |
|---|---|
| public boolean supportsOption(final Option<?> option) Implements org. Doc from org. Determine whether an option is supported on this channel.
| |