| Modifier and Type | Class and Description |
|---|---|
| public static class | XnioWorker.
A builder which allows workers to be programmatically configured. |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static interface | |
| pack-priv static class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private final CidrAddressTable | |
| private static final ContextManager | |
| private static final RuntimePermission | |
| private static final Set | |
| private static final Logger | |
| private static final IoFuture. | |
| private final String | |
| private static final Set | |
| private static final AtomicInteger | |
| private static final IoFuture. | |
| private final XnioWorker. | |
| private volatile int | |
| private static final AtomicIntegerFieldUpdater | |
| private final Runnable | |
| private final Xnio |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public IoFuture | Returns: the future connectionthe destination (bind) address destination, ChannelListener<? super ConnectedMessageChannel> 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)
Deprecated
Accept a message connection at a destination address. |
| 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 | Returns: the future connectionthe destination (bind) address destination, ChannelListener<? super ConnectedStreamChannel> 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)
Deprecated
Accept a stream 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. |
| public abstract boolean | Returns: true if termination completed before the timeout expiredthe amount of time to wait timeout, final TimeUnit the unit of time unit)Redeclares java. Wait for termination. |
| public abstract void | |
| protected abstract XnioIoThread | |
| public IoFuture | Returns: the future result of this operationthe destination address destination, ChannelListener<? super ConnectedMessageChannel> 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)
Deprecated
Connect to a remote datagram server. |
| public IoFuture | Returns: the future result of this operationthe local address to bind to bindAddress, SocketAddress the destination address destination, ChannelListener<? super ConnectedMessageChannel> 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)
Deprecated
Connect to a remote datagram server. |
| public IoFuture | Returns: the future result of this operationthe destination address destination, ChannelListener<? super ConnectedStreamChannel> the listener which will be notified when the channel is open, or openListener, OptionMap null for nonethe option map optionMap)
Deprecated
Connect to a remote stream server. |
| public IoFuture | Returns: the future result of this operationthe destination address destination, ChannelListener<? super ConnectedStreamChannel> 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)
Deprecated
Connect to a remote stream server. |
| public IoFuture | Returns: the future result of this operationthe local address to bind to bindAddress, SocketAddress the destination address destination, ChannelListener<? super ConnectedStreamChannel> 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)
Deprecated
Connect to a remote stream server. |
| 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. |
| protected AcceptingChannel | Returns: the acceptorthe address to bind to bindAddress, ChannelListener<? super AcceptingChannel<StreamConnection>> the initial accept listener acceptListener, OptionMap the initial configuration for the server optionMap)Implementation helper method to create a UNIX domain stream server. |
| public void | createOneWayPipe(ChannelListener<? super StreamSourceChannel>
the source open listener sourceListener, ChannelListener<? super StreamSinkChannel> the sink open listener sinkListener, final OptionMap the pipe channel configuration optionMap)
Deprecated
Users should prefer the simpler
createHalfDuplexPipe() instead.
Open a unidirectional stream pipe. |
| public void | createPipe(ChannelListener<? super StreamChannel>
the left-hand open listener leftOpenListener, ChannelListener<? super StreamChannel> the right-hand open listener rightOpenListener, final OptionMap the pipe channel configuration optionMap)
Deprecated
Users should prefer the simpler
createFullDuplexPipe() instead.
Open a bidirectional stream pipe. |
| public AcceptingChannel | Returns: the acceptorthe address to bind to bindAddress, ChannelListener<? super AcceptingChannel<StreamConnection>> the initial accept listener acceptListener, OptionMap the initial configuration for the server optionMap)Create a stream server, for TCP or UNIX domain servers. |
| public AcceptingChannel | Returns: the acceptorthe address to bind to bindAddress, ChannelListener<? super AcceptingChannel<ConnectedStreamChannel>> the initial accept listener acceptListener, OptionMap the initial configuration for the server optionMap)
Deprecated
Create a stream server, for TCP or UNIX domain servers. |
| protected AcceptingChannel | Returns: the acceptorthe address to bind to bindAddress, ChannelListener<? super AcceptingChannel<StreamConnection>> the initial accept listener acceptListener, OptionMap the initial configuration for the server optionMap)Implementation helper method to create a TCP stream server. |
| public MulticastMessageChannel | Returns: the UDP server channelthe bind address bindAddress, ChannelListener<? super MulticastMessageChannel> the initial open-connection listener bindListener, OptionMap the initial configuration for the server optionMap)Create a UDP server. |
| public MulticastMessageChannel | Returns: the UDP server channelthe bind address bindAddress, OptionMap the initial configuration for the server optionMap)Create a UDP server. |
| public void | execute(final Runnable
the command to run command)Implements java. Execute a command in the task pool. |
| public InetSocketAddress | Returns: the expected bind address for the given destination, ornull if no explicit bind will be doneGet the expected bind address for the given destination, if any. |
| protected CidrAddressTable | |
| protected final int | Returns: the estimated number of busy threads in the worker poolGet an estimate of the number of busy threads in the worker pool. |
| public static ContextManager | |
| protected final int | |
| public StreamSinkChannel | Returns: a compressed channelthe channel to compress to delegate, final OptionMap the configuration options for the channel options)Create a stream channel that compresses to the destination according to the configuration in the given option map. |
| protected StreamSinkChannel | Returns: a compressed channelthe channel to compress to delegate, final Deflater the deflater to use deflater)Create a stream channel that compresses to the destination according to the configuration in the given inflater. |
| public StreamSourceChannel | Returns: a decompressed channelthe compressed channel delegate, OptionMap the configuration options for the channel options)Create a stream channel that decompresses the source data according to the configuration in the given option map. |
| protected StreamSourceChannel | Returns: a decompressed channelthe compressed channel delegate, final Inflater the inflater to use inflater)Create a stream channel that decompresses the source data according to the configuration in the given inflater. |
| public ContextManager | Returns: the context manager (notnull)Implements org. Get the instance context manager for XNIO workers by delegating to |
| public final XnioIoThread | |
| public abstract XnioIoThread | |
| public abstract int | Returns: the number of I/O threads configured on this workerGet the number of I/O threads configured on this worker. |
| protected final int | |
| public abstract XnioWorkerMXBean | |
| public String | |
| private int | |
| public <T> T | getOption(final Option<T>
the option to get option)Implements org. Get the value of a channel option. |
| protected Runnable | Returns: the termination taskGet the user task to run once termination is complete. |
| protected final int | Returns: the estimated number of threads in the worker poolGet an estimate of the number of threads in the worker pool. |
| protected final int | Returns: the estimated number of tasksGet an estimate of the number of tasks in the worker queue. |
| public Xnio | |
| public abstract boolean | Returns: true the worker has been shut downRedeclares java. Determine whether the worker has been shut down. |
| protected boolean | Returns: true if the task pool is externally managed, false otherwiseDetermine whether the worker task pool is managed externally. |
| public abstract boolean | Returns: true if the worker is terminatedRedeclares java. Determine whether the worker has terminated. |
| 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 abstract ManagementRegistration | |
| 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 abstract void | |
| public abstract List | Returns: the list of outstanding tasksRedeclares java. Immediately terminate the worker. |
| protected void | |
| protected List | Returns: the pending task listShut down the task thread pool immediately and return its pending tasks. |
| public boolean | supportsOption(final Option<?>
the option option)Implements org. Determine whether an option is supported on this channel. |
| protected void |