| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private volatile int | |
| private static final AtomicIntegerFieldUpdater | |
| protected final XnioIoThread |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static <A extends SocketAddress> A | |
| public final void | |
| protected void | |
| public XnioIoThread | getIoThread()
Implements org. Get the I/O thread associated with this channel. |
| public final <A extends SocketAddress> A | getLocalAddress(final Class<A>
the address type class type)Implements org. Get the local address of a given type, or |
| public <T> T | getOption(final Option<T>
the option to get option)Implements org. Get the value of a channel option. |
| public final <A extends SocketAddress> A | getPeerAddress(final Class<A>
the address type class type)Implements org. Get the peer address of a given type, or |
| public final XnioWorker | getWorker()
Implements org. Get the worker for this channel. |
| pack-priv abstract void | |
| public boolean | |
| public boolean | Returns: true if reads were shut downDetermine whether reads have been shut down on this connection. |
| public boolean | Returns: true if writes were shut downDetermine whether writes have been shut down on this connection. |
| protected abstract void | |
| protected abstract void | |
| protected boolean | Returns: true if read closure was successfully indicated; false if this method has already been calledIndicate that reads have been closed on this connection. |
| 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. |
| protected boolean | Returns: true if write closure was successfully indicated; false if this method has already been calledIndicate that writes have been closed on this connection. |
| FLAG_READ_CLOSED | back to summary |
|---|---|
| private static final int FLAG_READ_CLOSED | |
| FLAG_WRITE_CLOSED | back to summary |
|---|---|
| private static final int FLAG_WRITE_CLOSED | |
| state | back to summary |
|---|---|
private volatile int state
| |
| stateUpdater | back to summary |
|---|---|
| private static final AtomicIntegerFieldUpdater<Connection> stateUpdater | |
| thread | back to summary |
|---|---|
| protected final XnioIoThread thread | |
| Connection | back to summary |
|---|---|
| protected Connection(final XnioIoThread thread) Construct a new instance.
| |
| castAddress | back to summary |
|---|---|
| private static <A extends SocketAddress> A castAddress(final Class<A> type, SocketAddress address) | |
| close | back to summary |
|---|---|
| public final 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.
| |
| closeAction | back to summary |
|---|---|
| protected void closeAction() throws IOException The close action to perform on this connection.
| |
| getIoThread | back to summary |
|---|---|
| public XnioIoThread getIoThread() Implements org. Doc from org. Get the I/O thread associated with this channel.
| |
| getLocalAddress | back to summary |
|---|---|
| public final <A extends SocketAddress> A getLocalAddress(final Class<A> type) Implements org. Doc from org. Get the local address of a given type, or
| |
| 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.
| |
| getPeerAddress | back to summary |
|---|---|
| public final <A extends SocketAddress> A getPeerAddress(final Class<A> type) Implements org. Doc from org. Get the peer address of a given type, or
| |
| getWorker | back to summary |
|---|---|
| public final XnioWorker getWorker() Implements org. Doc from org. Get the worker for this channel.
| |
| invokeCloseListener | back to summary |
|---|---|
| pack-priv abstract void invokeCloseListener() | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements java. Doc from java. Tells whether or not this channel is open.
| |
| isReadShutdown | back to summary |
|---|---|
| public boolean isReadShutdown() Determine whether reads have been shut down on this connection.
| |
| isWriteShutdown | back to summary |
|---|---|
| public boolean isWriteShutdown() Determine whether writes have been shut down on this connection.
| |
| notifyReadClosed | back to summary |
|---|---|
| protected abstract void notifyReadClosed() Indicate to conduit handlers that reads have been closed. | |
| notifyWriteClosed | back to summary |
|---|---|
| protected abstract void notifyWriteClosed() Indicate to conduit handlers that writes have been closed. | |
| readClosed | back to summary |
|---|---|
| protected boolean readClosed() Indicate that reads have been closed on this connection.
| |
| 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.
| |
| writeClosed | back to summary |
|---|---|
| protected boolean writeClosed() Indicate that writes have been closed on this connection.
| |