| Modifier and Type | Field and Description |
|---|---|
| private static final InetSocketAddress | |
| private final int | |
| private final XnioWorker |
| Access | Constructor and Description |
|---|---|
| protected | XnioIoThread(final XnioWorker
the XNIO worker to associate with worker, final int the thread number number)Construct a new instance. |
| protected | XnioIoThread(final XnioWorker
the XNIO worker to associate with worker, final int the thread number number, final String the thread name name)Construct a new instance. |
| protected | XnioIoThread(final XnioWorker
the XNIO worker to associate with worker, final int the thread number number, final ThreadGroup the thread group group, final String the thread name name)Construct a new instance. |
| protected | XnioIoThread(final XnioWorker
the XNIO worker to associate with worker, final int the thread number number, final ThreadGroup the thread group group, final String the thread name name, final long the thread stack size stackSize)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected IoFuture | Returns: the future connectionthe destination (bind) address destination, ChannelListener<? super MessageConnection> the listener which will be notified when the channel is open, or openListener, ChannelListener<? super BoundChannel> null for nonethe listener which will be notified when the acceptor is bound, or bindListener, OptionMap null for nonethe option map optionMap)Implementation helper method to accept a local (UNIX domain) datagram connection. |
| protected IoFuture | Returns: the future connectionthe destination (bind) address destination, ChannelListener<? super StreamConnection> the listener which will be notified when the channel is open, or openListener, ChannelListener<? super BoundChannel> null for nonethe listener which will be notified when the acceptor is bound, or bindListener, OptionMap null for nonethe option map optionMap)Implementation helper method to accept a local (UNIX domain) stream connection. |
| public IoFuture | acceptMessageConnection(final SocketAddress
the destination (bind) address destination, final ChannelListener<? super MessageConnection> the listener which will be notified when the channel is open, or openListener, final ChannelListener<? super BoundChannel> null for nonethe listener which will be notified when the acceptor is bound, or bindListener, final OptionMap null for nonethe option map optionMap)Implements org. Accept a message connection at a destination address. |
| public IoFuture | acceptStreamConnection(SocketAddress
the destination (bind) address destination, ChannelListener<? super StreamConnection> the listener which will be notified when the channel is open, or openListener, ChannelListener<? super BoundChannel> null for nonethe listener which will be notified when the acceptor is bound, or bindListener, OptionMap null for nonethe option map optionMap)Implements org. Accept a stream connection at a destination address. |
| protected IoFuture | Returns: the future connectionthe destination (bind) address destination, ChannelListener<? super StreamConnection> the listener which will be notified when the channel is open, or openListener, ChannelListener<? super BoundChannel> null for nonethe listener which will be notified when the acceptor is bound, or bindListener, OptionMap null for nonethe option map optionMap)Implementation helper method to accept a TCP connection. |
| public ChannelPipe | createFullDuplexPipe()
Implements org. Create a two-way stream pipe. |
| public ChannelPipe | createFullDuplexPipeConnection()
Implements org. Create a two-way stream pipe. |
| public ChannelPipe | createFullDuplexPipeConnection(final XnioIoFactory
the peer to use for controlling the remote (right) side peer)Implements org. Create a two-way stream pipe. |
| public ChannelPipe | createHalfDuplexPipe()
Implements org. Create a one-way stream pipe. |
| public ChannelPipe | createHalfDuplexPipe(final XnioIoFactory
the peer to use for the sink (right) side peer)Implements org. Create a one-way stream pipe. |
| public static XnioIoThread | Returns: the current XNIO threadHides java. Get the current XNIO thread. |
| public int | |
| public XnioWorker | |
| private IoFuture | internalOpenTcpStreamConnection(InetSocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
|
| protected IoFuture | Returns: the future result of this operationthe bind address bindAddress, LocalSocketAddress the destination address destinationAddress, ChannelListener<? super MessageConnection> the listener which will be notified when the channel is open, or openListener, OptionMap null for nonethe option map optionMap)Implementation helper method to connect to a local (UNIX domain) server. |
| protected IoFuture | Returns: the future result of this operationthe bind address bindAddress, LocalSocketAddress the destination address destinationAddress, ChannelListener<? super StreamConnection> the listener which will be notified when the channel is open, or openListener, ChannelListener<? super BoundChannel> null for nonethe listener which will be notified when the channel is bound, or bindListener, OptionMap null for nonethe option map optionMap)Implementation helper method to connect to a local (UNIX domain) server. |
| public IoFuture | openMessageConnection(final SocketAddress
the destination address destination, final ChannelListener<? super MessageConnection> the listener which will be notified when the channel is open, or openListener, final OptionMap null for nonethe option map optionMap)Implements org. Connect to a remote message server. |
| public IoFuture | openStreamConnection(SocketAddress
the destination address destination, ChannelListener<? super StreamConnection> the listener which will be notified when the channel is open, or openListener, OptionMap null for nonethe option map optionMap)Implements org. Connect to a remote stream server. |
| public IoFuture | openStreamConnection(SocketAddress
the destination address destination, ChannelListener<? super StreamConnection> the listener which will be notified when the channel is open, or openListener, ChannelListener<? super BoundChannel> null for nonethe listener which will be notified when the channel is bound, or bindListener, OptionMap null for nonethe option map optionMap)Implements org. Connect to a remote stream server. |
| public IoFuture | openStreamConnection(SocketAddress
the local address to bind to bindAddress, SocketAddress the destination address destination, ChannelListener<? super StreamConnection> the listener which will be notified when the channel is open, or openListener, ChannelListener<? super BoundChannel> null for nonethe listener which will be notified when the channel is bound, or bindListener, OptionMap null for nonethe option map optionMap)Implements org. Connect to a remote stream server. |
| protected IoFuture | Returns: the future result of this operationthe bind address bindAddress, InetSocketAddress the destination address destinationAddress, ChannelListener<? super StreamConnection> the listener which will be notified when the channel is open, or openListener, ChannelListener<? super BoundChannel> null for nonethe listener which will be notified when the channel is bound, or bindListener, OptionMap null for nonethe option map optionMap)Implementation helper method to connect to a TCP server. |
| public static XnioIoThread |
| ANY_INET_ADDRESS | back to summary |
|---|---|
| private static final InetSocketAddress ANY_INET_ADDRESS | |
| number | back to summary |
|---|---|
| private final int number | |
| worker | back to summary |
|---|---|
| private final XnioWorker worker | |
| XnioIoThread | back to summary |
|---|---|
| protected XnioIoThread(final XnioWorker worker, final int number) Construct a new instance.
| |
| XnioIoThread | back to summary |
|---|---|
| protected XnioIoThread(final XnioWorker worker, final int number, final String name) Construct a new instance.
| |
| XnioIoThread | back to summary |
|---|---|
| protected XnioIoThread(final XnioWorker worker, final int number, final ThreadGroup group, final String name) Construct a new instance.
| |
| XnioIoThread | back to summary |
|---|---|
| protected XnioIoThread(final XnioWorker worker, final int number, final ThreadGroup group, final String name, final long stackSize) Construct a new instance.
| |
| acceptLocalMessageConnection | back to summary |
|---|---|
| protected IoFuture Implementation helper method to accept a local (UNIX domain) datagram connection.
| |
| acceptLocalStreamConnection | back to summary |
|---|---|
| protected IoFuture Implementation helper method to accept a local (UNIX domain) stream connection.
| |
| acceptMessageConnection | back to summary |
|---|---|
| public IoFuture Implements org. Doc from org. Accept a message connection at a destination address. If a wildcard address is specified, then a destination address
is chosen in a manner specific to the OS and/or channel type. If an open listener is used, the channel should
not be accessed via the returned
| |
| acceptStreamConnection | back to summary |
|---|---|
| public IoFuture Implements org. Doc from org. Accept a stream connection at a destination address. If a wildcard address is specified, then a destination address is chosen in a manner specific to the OS and/or channel type.
| |
| acceptTcpStreamConnection | back to summary |
|---|---|
| protected IoFuture Implementation helper method to accept a TCP connection.
| |
| createFullDuplexPipe | back to summary |
|---|---|
| public ChannelPipe Implements org. Doc from org. Create a two-way stream pipe.
| |
| createFullDuplexPipeConnection | back to summary |
|---|---|
| public ChannelPipe Implements org. Doc from org. Create a two-way stream pipe.
| |
| createFullDuplexPipeConnection | back to summary |
|---|---|
| public ChannelPipe Implements org. Doc from org. Create a two-way stream pipe. The left side will be associated with this factory, and the right side will be associated with the given peer.
| |
| createHalfDuplexPipe | back to summary |
|---|---|
| public ChannelPipe Implements org. Doc from org. Create a one-way stream pipe.
| |
| createHalfDuplexPipe | back to summary |
|---|---|
| public ChannelPipe Implements org. Doc from org. Create a one-way stream pipe. The left (source) side will be associated with this factory, and the right (sink) side will be associated with the given peer.
| |
| currentThread | back to summary |
|---|---|
| public static XnioIoThread currentThread() Hides java. Get the current XNIO thread. If the current thread is not an XNIO thread,
| |
| getNumber | back to summary |
|---|---|
| public int getNumber() Get the number of this thread. In each XNIO worker, every IO thread is given a unique, sequential number.
| |
| getWorker | back to summary |
|---|---|
| public XnioWorker getWorker() Get the XNIO worker associated with this thread.
| |
| internalOpenTcpStreamConnection | back to summary |
|---|---|
| private IoFuture | |
| openLocalMessageConnection | back to summary |
|---|---|
| protected IoFuture Implementation helper method to connect to a local (UNIX domain) server.
| |
| openLocalStreamConnection | back to summary |
|---|---|
| protected IoFuture Implementation helper method to connect to a local (UNIX domain) server.
| |
| openMessageConnection | back to summary |
|---|---|
| public IoFuture Implements org. Doc from org. Connect to a remote message server. The protocol family is determined by the type of the socket address given.
If an open listener is used, the channel should not be accessed via the returned
| |
| openStreamConnection | back to summary |
|---|---|
| public IoFuture Implements org. Doc from org. Connect to a remote stream server. The protocol family is determined by the type of the socket address given.
If an open listener is used, the channel should not be accessed via the returned
| |
| openStreamConnection | back to summary |
|---|---|
| public IoFuture Implements org. Doc from org. Connect to a remote stream server. The protocol family is determined by the type of the socket address given.
If an open listener is used, the channel should not be accessed via the returned
| |
| openStreamConnection | back to summary |
|---|---|
| public IoFuture Implements org. Doc from org. Connect to a remote stream server. The protocol family is determined by the type of the socket addresses given
(which must match). If an open listener is used, the channel should not be accessed via the returned
| |
| openTcpStreamConnection | back to summary |
|---|---|
| protected IoFuture Implementation helper method to connect to a TCP server.
| |
| requireCurrentThread | back to summary |
|---|---|
| public static XnioIoThread requireCurrentThread() throws IllegalStateException Get the current XNIO thread. If the current thread is not an XNIO thread, an
| |