# Uses of Interface
org.xnio.ChannelListener

Packages that use ChannelListener
Package
Description
org.xnio
The main API package for XNIO.
org.xnio.channels
The core XNIO channel API.
org.xnio.conduits
The XNIO conduit SPI.
org.xnio.http
org.xnio.ssl
Utility classes for using and implementing SSL within XNIO providers.

## Uses of ChannelListener in org.xnio

Classes in org.xnio that implement ChannelListener
Modifier and Type
Class
Description
`final class`
`ChainedChannelListener<T extends Channel>`
A channel listener that chains calls to a number of other channel listeners.
`class`
`DelegatingChannelListener<T extends Channel>`
A base class for a channel listener which performs an action and then calls a delegate listener.
Methods in org.xnio that return ChannelListener
Modifier and Type
Method
Description
`static ChannelListener<Channel>`
ChannelListeners.`closingChannelListener()`
Get a channel listener which closes the channel when notified.
`static ChannelListener<Channel>`
ChannelListeners.`closingChannelListener(Closeable resource)`
Get a channel listener which closes the given resource when notified.
`static ChannelListener<Channel>`
ChannelListeners.`closingChannelListener(Closeable... resources)`
Get a channel listener which closes the given resources when notified.
`static <T extends Channel>
ChannelListener<T>`
ChannelListeners.`closingChannelListener(ChannelListener<T> delegate, Closeable resource)`
Get a channel listener which closes the given resource when notified.
`static <T extends Channel>
ChannelListener<T>`
ChannelListeners.`closingChannelListener(ChannelListener<T> delegate, Closeable... resources)`
Get a channel listener which closes the given resource when notified.
`static <T extends Channel>
ChannelListener<T>`
ChannelListeners.`delegatingChannelListener(ChannelListener<? super T> delegate)`
A delegating channel listener which passes an event to another listener of the same or a super type.
`static <C extends Channel, T extends Channel>
ChannelListener<C>`
ChannelListeners.`delegatingChannelListener(T channel, ChannelListener.SimpleSetter<T> setter)`
A delegating channel listener which passes an event to the listener stored in the given setter.
`static <T extends StreamSourceChannel>
ChannelListener<T>`
ChannelListeners.`drainListener(long bytes, ChannelListener<? super T> finishListener, ChannelExceptionHandler<? super T> exceptionHandler)`
Create a channel listener which automatically drains the given number of bytes from the channel and then calls a listener.
`static <T extends Channel>
ChannelListener<T>`
ChannelListeners.`executorChannelListener(ChannelListener<T> listener, Executor executor)`
Get a channel listener which executes a delegate channel listener via an executor.
`static <T extends StreamSourceChannel>
ChannelListener<T>`
ChannelListeners.`fileReceivingChannelListener(FileChannel target, long position, long count, ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A file-receiving channel listener.
`static <T extends StreamSinkChannel>
ChannelListener<T>`
ChannelListeners.`fileSendingChannelListener(FileChannel source, long position, long count, ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A file-sending channel listener.
`static <T extends SuspendableWriteChannel>
ChannelListener<T>`
ChannelListeners.`flushingChannelListener(ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A flushing channel listener.
`ChannelListener<? super T>`
ChannelListener.SimpleSetter.`get()`
Get the channel listener set on this setter.
`ChannelListener<? super MessageConnection>`
MessageConnection.`getCloseListener()`
`ChannelListener<? super StreamConnection>`
StreamConnection.`getCloseListener()`
`static ChannelListener<Channel>`
ChannelListeners.`nullChannelListener()`
Get a channel listener which does nothing.
`static <C extends ConnectedChannel>
ChannelListener<AcceptingChannel<C>>`
ChannelListeners.`openListenerAdapter(ChannelListener<? super C> openListener)`
Create an open listener adapter which automatically accepts connections and invokes an open listener.
`static <T extends SuspendableReadChannel>
ChannelListener<T>`
ChannelListeners.`readSuspendingChannelListener(ChannelListener<? super T> delegate)`
A read-suspending channel listener.
`static <T extends WritableMessageChannel>
ChannelListener<T>`
ChannelListeners.`sendingChannelListener(Pooled<ByteBuffer> pooled, ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A sending channel listener.
`static <T extends SuspendableWriteChannel>
ChannelListener<T>`
ChannelListeners.`writeShutdownChannelListener(ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A write shutdown channel listener.
`static <T extends SuspendableWriteChannel>
ChannelListener<T>`
ChannelListeners.`writeSuspendingChannelListener(ChannelListener<? super T> delegate)`
A write-suspending channel listener.
`static <T extends StreamSinkChannel>
ChannelListener<T>`
ChannelListeners.`writingChannelListener(Pooled<ByteBuffer> pooled, ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A writing channel listener.
Methods in org.xnio that return types with arguments of type ChannelListener
Modifier and Type
Method
Description
`static <T extends Channel>
IoFuture.Notifier<T,ChannelListener<? super T>>`
IoUtils.`channelListenerNotifier()`
Get the notifier that invokes the channel listener given as an attachment.
Methods in org.xnio with parameters of type ChannelListener
Modifier and Type
Method
Description
`IoFuture<? extends T>`
ChannelDestination.`accept(ChannelListener<? super T> openListener, ChannelListener<? super BoundChannel> bindListener)`
Accept a connection.
`IoFuture<ConnectedMessageChannel>`
XnioWorker.`acceptDatagram(SocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Deprecated.
`protected IoFuture<MessageConnection>`
XnioIoThread.`acceptLocalMessageConnection(LocalSocketAddress destination, ChannelListener<? super MessageConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Implementation helper method to accept a local (UNIX domain) datagram connection.
`protected IoFuture<StreamConnection>`
XnioIoThread.`acceptLocalStreamConnection(LocalSocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Implementation helper method to accept a local (UNIX domain) stream connection.
`IoFuture<MessageConnection>`
XnioIoFactory.`acceptMessageConnection(SocketAddress destination, ChannelListener<? super MessageConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Accept a message connection at a destination address.
`IoFuture<MessageConnection>`
XnioIoThread.`acceptMessageConnection(SocketAddress destination, ChannelListener<? super MessageConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
`IoFuture<MessageConnection>`
XnioWorker.`acceptMessageConnection(SocketAddress destination, ChannelListener<? super MessageConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
`IoFuture<ConnectedStreamChannel>`
XnioWorker.`acceptStream(SocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Deprecated.
`IoFuture<StreamConnection>`
XnioIoFactory.`acceptStreamConnection(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Accept a stream connection at a destination address.
`IoFuture<StreamConnection>`
XnioIoThread.`acceptStreamConnection(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
`IoFuture<StreamConnection>`
XnioWorker.`acceptStreamConnection(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
`protected IoFuture<StreamConnection>`
XnioIoThread.`acceptTcpStreamConnection(InetSocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Implementation helper method to accept a TCP connection.
`static <T extends Channel>
ChannelListener<T>`
ChannelListeners.`closingChannelListener(ChannelListener<T> delegate, Closeable resource)`
Get a channel listener which closes the given resource when notified.
`static <T extends Channel>
ChannelListener<T>`
ChannelListeners.`closingChannelListener(ChannelListener<T> delegate, Closeable... resources)`
Get a channel listener which closes the given resource when notified.
`IoFuture<ConnectedMessageChannel>`
XnioWorker.`connectDatagram(SocketAddress bindAddress, SocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Deprecated.
`IoFuture<ConnectedMessageChannel>`
XnioWorker.`connectDatagram(SocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Deprecated.
`IoFuture<ConnectedStreamChannel>`
XnioWorker.`connectStream(SocketAddress bindAddress, SocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Deprecated.
`IoFuture<ConnectedStreamChannel>`
XnioWorker.`connectStream(SocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Deprecated.
`IoFuture<ConnectedStreamChannel>`
XnioWorker.`connectStream(SocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, OptionMap optionMap)`
Deprecated.
`protected AcceptingChannel<StreamConnection>`
XnioWorker.`createLocalStreamConnectionServer(LocalSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<StreamConnection>> acceptListener, OptionMap optionMap)`
Implementation helper method to create a UNIX domain stream server.
`void`
XnioWorker.`createOneWayPipe(ChannelListener<? super StreamSourceChannel> sourceListener, ChannelListener<? super StreamSinkChannel> sinkListener, OptionMap optionMap)`
Deprecated.
Users should prefer the simpler `XnioWorker.createHalfDuplexPipe()` instead.
`void`
XnioWorker.`createPipe(ChannelListener<? super StreamChannel> leftOpenListener, ChannelListener<? super StreamChannel> rightOpenListener, OptionMap optionMap)`
Deprecated.
Users should prefer the simpler `XnioWorker.createFullDuplexPipe()` instead.
`AcceptingChannel<StreamConnection>`
XnioWorker.`createStreamConnectionServer(SocketAddress bindAddress, ChannelListener<? super AcceptingChannel<StreamConnection>> acceptListener, OptionMap optionMap)`
Create a stream server, for TCP or UNIX domain servers.
`AcceptingChannel<? extends ConnectedStreamChannel>`
XnioWorker.`createStreamServer(SocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedStreamChannel>> acceptListener, OptionMap optionMap)`
Deprecated.
`protected AcceptingChannel<StreamConnection>`
XnioWorker.`createTcpConnectionServer(InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<StreamConnection>> acceptListener, OptionMap optionMap)`
Implementation helper method to create a TCP stream server.
`MulticastMessageChannel`
XnioWorker.`createUdpServer(InetSocketAddress bindAddress, ChannelListener<? super MulticastMessageChannel> bindListener, OptionMap optionMap)`
Create a UDP server.
`static <T extends Channel>
ChannelListener<T>`
ChannelListeners.`delegatingChannelListener(ChannelListener<? super T> delegate)`
A delegating channel listener which passes an event to another listener of the same or a super type.
`static <T extends StreamSourceChannel>
ChannelListener<T>`
ChannelListeners.`drainListener(long bytes, ChannelListener<? super T> finishListener, ChannelExceptionHandler<? super T> exceptionHandler)`
Create a channel listener which automatically drains the given number of bytes from the channel and then calls a listener.
`static <T extends Channel>
ChannelListener<T>`
ChannelListeners.`executorChannelListener(ChannelListener<T> listener, Executor executor)`
Get a channel listener which executes a delegate channel listener via an executor.
`static <T extends StreamSourceChannel>
ChannelListener<T>`
ChannelListeners.`fileReceivingChannelListener(FileChannel target, long position, long count, ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A file-receiving channel listener.
`static <T extends StreamSinkChannel>
ChannelListener<T>`
ChannelListeners.`fileSendingChannelListener(FileChannel source, long position, long count, ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A file-sending channel listener.
`static <T extends SuspendableWriteChannel>
ChannelListener<T>`
ChannelListeners.`flushingChannelListener(ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A flushing channel listener.
`static <T extends Channel>
Runnable`
ChannelListeners.`getChannelListenerTask(T channel, ChannelListener<? super T> channelListener)`
Get a task which invokes the given channel listener on the given channel.
`static <I extends StreamSourceChannel, O extends StreamSinkChannel>
void`
ChannelListeners.`initiateTransfer(long count, I source, O sink, ChannelListener<? super I> sourceListener, ChannelListener<? super O> sinkListener, ChannelExceptionHandler<? super I> readExceptionHandler, ChannelExceptionHandler<? super O> writeExceptionHandler, Pool<ByteBuffer> pool)`
Initiate a low-copy transfer between two stream channels.
`static <T extends Channel>
void`
ChannelListeners.`invokeChannelListener(Executor executor, T channel, ChannelListener<? super T> channelListener)`
Invoke a channel listener on a given channel, logging any errors, using the given executor.
`static <T extends Channel>
boolean`
ChannelListeners.`invokeChannelListener(T channel, ChannelListener<? super T> channelListener)`
Invoke a channel listener on a given channel, logging any errors.
`IoFuture<T>`
ChannelSource.`open(ChannelListener<? super T> openListener)`
Open a channel.
`static <C extends ConnectedChannel>
ChannelListener<AcceptingChannel<C>>`
ChannelListeners.`openListenerAdapter(ChannelListener<? super C> openListener)`
Create an open listener adapter which automatically accepts connections and invokes an open listener.
`protected IoFuture<MessageConnection>`
XnioIoThread.`openLocalMessageConnection(LocalSocketAddress bindAddress, LocalSocketAddress destinationAddress, ChannelListener<? super MessageConnection> openListener, OptionMap optionMap)`
Implementation helper method to connect to a local (UNIX domain) server.
`protected IoFuture<StreamConnection>`
XnioIoThread.`openLocalStreamConnection(LocalSocketAddress bindAddress, LocalSocketAddress destinationAddress, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Implementation helper method to connect to a local (UNIX domain) server.
`IoFuture<MessageConnection>`
XnioIoFactory.`openMessageConnection(SocketAddress destination, ChannelListener<? super MessageConnection> openListener, OptionMap optionMap)`
Connect to a remote message server.
`IoFuture<MessageConnection>`
XnioIoThread.`openMessageConnection(SocketAddress destination, ChannelListener<? super MessageConnection> openListener, OptionMap optionMap)`
`IoFuture<MessageConnection>`
XnioWorker.`openMessageConnection(SocketAddress destination, ChannelListener<? super MessageConnection> openListener, OptionMap optionMap)`
`IoFuture<StreamConnection>`
XnioIoFactory.`openStreamConnection(SocketAddress bindAddress, SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Connect to a remote stream server.
`IoFuture<StreamConnection>`
XnioIoFactory.`openStreamConnection(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Connect to a remote stream server.
`IoFuture<StreamConnection>`
XnioIoFactory.`openStreamConnection(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, OptionMap optionMap)`
Connect to a remote stream server.
`IoFuture<StreamConnection>`
XnioIoThread.`openStreamConnection(SocketAddress bindAddress, SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
`IoFuture<StreamConnection>`
XnioIoThread.`openStreamConnection(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
`IoFuture<StreamConnection>`
XnioIoThread.`openStreamConnection(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, OptionMap optionMap)`
`IoFuture<StreamConnection>`
XnioWorker.`openStreamConnection(SocketAddress bindAddress, SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
`IoFuture<StreamConnection>`
XnioWorker.`openStreamConnection(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
`IoFuture<StreamConnection>`
XnioWorker.`openStreamConnection(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, OptionMap optionMap)`
`protected IoFuture<StreamConnection>`
XnioIoThread.`openTcpStreamConnection(InetSocketAddress bindAddress, InetSocketAddress destinationAddress, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Implementation helper method to connect to a TCP server.
`static <T extends SuspendableReadChannel>
ChannelListener<T>`
ChannelListeners.`readSuspendingChannelListener(ChannelListener<? super T> delegate)`
A read-suspending channel listener.
`static <T extends WritableMessageChannel>
ChannelListener<T>`
ChannelListeners.`sendingChannelListener(Pooled<ByteBuffer> pooled, ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A sending channel listener.
`void`
ChannelListener.Setter.`set(ChannelListener<? super T> listener)`
Set the listener, or `null` to ignore the associated event type.
`void`
ChannelListener.SimpleSetter.`set(ChannelListener<? super T> listener)`
Set the listener, or `null` to ignore the associated event type.
`void`
MessageConnection.`setCloseListener(ChannelListener<? super MessageConnection> listener)`
`void`
StreamConnection.`setCloseListener(ChannelListener<? super StreamConnection> listener)`
`static <T extends SuspendableWriteChannel>
ChannelListener<T>`
ChannelListeners.`writeShutdownChannelListener(ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A write shutdown channel listener.
`static <T extends SuspendableWriteChannel>
ChannelListener<T>`
ChannelListeners.`writeSuspendingChannelListener(ChannelListener<? super T> delegate)`
A write-suspending channel listener.
`static <T extends StreamSinkChannel>
ChannelListener<T>`
ChannelListeners.`writingChannelListener(Pooled<ByteBuffer> pooled, ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A writing channel listener.
Method parameters in org.xnio with type arguments of type ChannelListener
Modifier and Type
Method
Description
`static <T extends Channel, C>
ChannelListener.Setter<T>`
ChannelListeners.`getSetter(C channel, AtomicReferenceFieldUpdater<C,ChannelListener> updater)`
Deprecated.
Not recommended as a security manager will enforce unreasonable restrictions on the updater.
`static <T extends Channel>
ChannelListener.Setter<T>`
ChannelListeners.`getSetter(AtomicReference<ChannelListener<? super T>> atomicReference)`
Get a setter based on an atomic reference.
Constructors in org.xnio with parameters of type ChannelListener
Modifier
Constructor
Description
``
`ChainedChannelListener(ChannelListener<? super T>... listeners)`
Construct a new instance.
`protected`
`DelegatingChannelListener(ChannelListener<? super T> next)`
Construct a new instance.

## Uses of ChannelListener in org.xnio.channels

Methods in org.xnio.channels that return ChannelListener
Modifier and Type
Method
Description
`ChannelListener<? super C>`
AcceptListenerSettable.`getAcceptListener()`
Get the accept listener.
`ChannelListener<? super C>`
CloseListenerSettable.`getCloseListener()`
Get the close listener.
`ChannelListener<? super EmptyStreamSourceChannel>`
EmptyStreamSourceChannel.`getCloseListener()`
`ChannelListener<? super FixedLengthStreamSinkChannel>`
FixedLengthStreamSinkChannel.`getCloseListener()`
`ChannelListener<? super FixedLengthStreamSourceChannel>`
FixedLengthStreamSourceChannel.`getCloseListener()`
`ChannelListener<? super NullStreamSinkChannel>`
NullStreamSinkChannel.`getCloseListener()`
`ChannelListener<? super SplitStreamSinkChannel>`
SplitStreamSinkChannel.`getCloseListener()`
`ChannelListener<? super SplitStreamSourceChannel>`
SplitStreamSourceChannel.`getCloseListener()`
`ChannelListener<? super C>`
TranslatingSuspendableChannel.`getCloseListener()`
Deprecated.
`ChannelListener<? super EmptyStreamSourceChannel>`
EmptyStreamSourceChannel.`getReadListener()`
`ChannelListener<? super FixedLengthStreamSourceChannel>`
FixedLengthStreamSourceChannel.`getReadListener()`
`ChannelListener<? super C>`
ReadListenerSettable.`getReadListener()`
Get the read listener.
`ChannelListener<? super SplitStreamSourceChannel>`
SplitStreamSourceChannel.`getReadListener()`
`ChannelListener<? super C>`
TranslatingSuspendableChannel.`getReadListener()`
Deprecated.
`ChannelListener<? super FixedLengthStreamSinkChannel>`
FixedLengthStreamSinkChannel.`getWriteListener()`
`ChannelListener<? super NullStreamSinkChannel>`
NullStreamSinkChannel.`getWriteListener()`
`ChannelListener<? super SplitStreamSinkChannel>`
SplitStreamSinkChannel.`getWriteListener()`
`ChannelListener<? super C>`
TranslatingSuspendableChannel.`getWriteListener()`
Deprecated.
`ChannelListener<? super C>`
WriteListenerSettable.`getWriteListener()`
Get the write listener.
Methods in org.xnio.channels with parameters of type ChannelListener
Modifier and Type
Method
Description
`void`
AcceptListenerSettable.Setter.`set(ChannelListener<? super C> listener)`
`void`
CloseListenerSettable.Setter.`set(ChannelListener<? super C> listener)`
`void`
ReadListenerSettable.Setter.`set(ChannelListener<? super C> listener)`
`void`
WriteListenerSettable.Setter.`set(ChannelListener<? super C> listener)`
`void`
AcceptListenerSettable.`setAcceptListener(ChannelListener<? super C> listener)`
Set the accept listener.
`static <T extends AcceptingChannel<?>>
void`
Channels.`setAcceptListener(T channel, ChannelListener<? super T> listener)`
Set the accept listener for a channel (type-safe).
`static <T extends CloseableChannel>
void`
Channels.`setCloseListener(T channel, ChannelListener<? super T> listener)`
Set the close listener for a channel (type-safe).
`void`
CloseListenerSettable.`setCloseListener(ChannelListener<? super C> listener)`
Set the close listener.
`void`
EmptyStreamSourceChannel.`setCloseListener(ChannelListener<? super EmptyStreamSourceChannel> closeListener)`
`void`
FixedLengthStreamSinkChannel.`setCloseListener(ChannelListener<? super FixedLengthStreamSinkChannel> listener)`
`void`
FixedLengthStreamSourceChannel.`setCloseListener(ChannelListener<? super FixedLengthStreamSourceChannel> closeListener)`
`void`
NullStreamSinkChannel.`setCloseListener(ChannelListener<? super NullStreamSinkChannel> closeListener)`
`void`
PushBackStreamChannel.`setCloseListener(ChannelListener<? super PushBackStreamChannel> closeListener)`
`void`
SplitStreamSinkChannel.`setCloseListener(ChannelListener<? super SplitStreamSinkChannel> closeListener)`
`void`
SplitStreamSourceChannel.`setCloseListener(ChannelListener<? super SplitStreamSourceChannel> closeListener)`
`void`
TranslatingSuspendableChannel.`setCloseListener(ChannelListener<? super C> closeListener)`
Deprecated.
`static <T extends SuspendableReadChannel>
void`
Channels.`setReadListener(T channel, ChannelListener<? super T> listener)`
Set the read listener for a channel (type-safe).
`void`
EmptyStreamSourceChannel.`setReadListener(ChannelListener<? super EmptyStreamSourceChannel> readListener)`
`void`
FixedLengthStreamSourceChannel.`setReadListener(ChannelListener<? super FixedLengthStreamSourceChannel> readListener)`
`void`
PushBackStreamChannel.`setReadListener(ChannelListener<? super PushBackStreamChannel> readListener)`
`void`
ReadListenerSettable.`setReadListener(ChannelListener<? super C> listener)`
Set the read listener.
`void`
SplitStreamSourceChannel.`setReadListener(ChannelListener<? super SplitStreamSourceChannel> readListener)`
`void`
TranslatingSuspendableChannel.`setReadListener(ChannelListener<? super C> readListener)`
Deprecated.
`static <T extends SuspendableWriteChannel>
void`
Channels.`setWriteListener(T channel, ChannelListener<? super T> listener)`
Set the write listener for a channel (type-safe).
`void`
FixedLengthStreamSinkChannel.`setWriteListener(ChannelListener<? super FixedLengthStreamSinkChannel> listener)`
`void`
NullStreamSinkChannel.`setWriteListener(ChannelListener<? super NullStreamSinkChannel> writeListener)`
`void`
SplitStreamSinkChannel.`setWriteListener(ChannelListener<? super SplitStreamSinkChannel> writeListener)`
`void`
TranslatingSuspendableChannel.`setWriteListener(ChannelListener<? super C> writeListener)`
Deprecated.
`void`
WriteListenerSettable.`setWriteListener(ChannelListener<? super C> listener)`
Set the write listener.
Constructors in org.xnio.channels with parameters of type ChannelListener
Modifier
Constructor
Description
``
`FixedLengthStreamSinkChannel(StreamSinkChannel delegate, long contentLength, boolean configurable, boolean propagateClose, ChannelListener<? super FixedLengthStreamSinkChannel> finishListener, Object guard)`
Construct a new instance.
``
`FixedLengthStreamSourceChannel(StreamSourceChannel delegate, long contentLength, boolean configurable, boolean propagateClose, ChannelListener<? super FixedLengthStreamSourceChannel> finishListener, Object guard)`
Construct a new instance.
``
`FixedLengthStreamSourceChannel(StreamSourceChannel delegate, long contentLength, boolean configurable, ChannelListener<? super FixedLengthStreamSourceChannel> finishListener, Object guard)`
Construct a new instance.
``
`FixedLengthStreamSourceChannel(StreamSourceChannel delegate, long contentLength, ChannelListener<? super FixedLengthStreamSourceChannel> finishListener, Object guard)`
Construct a new instance.

## Uses of ChannelListener in org.xnio.conduits

Methods in org.xnio.conduits that return ChannelListener
Modifier and Type
Method
Description
`ChannelListener<? super ConduitReadableMessageChannel>`
ConduitReadableMessageChannel.`getCloseListener()`
`ChannelListener<? super ConduitStreamSinkChannel>`
ConduitStreamSinkChannel.`getCloseListener()`
`ChannelListener<? super ConduitStreamSourceChannel>`
ConduitStreamSourceChannel.`getCloseListener()`
`ChannelListener<? super ConduitWritableMessageChannel>`
ConduitWritableMessageChannel.`getCloseListener()`
`ChannelListener<? super ConduitReadableMessageChannel>`
ConduitReadableMessageChannel.`getReadListener()`
`ChannelListener<? super ConduitStreamSourceChannel>`
ConduitStreamSourceChannel.`getReadListener()`
`ChannelListener<? super ConduitStreamSinkChannel>`
ConduitStreamSinkChannel.`getWriteListener()`
`ChannelListener<? super ConduitWritableMessageChannel>`
ConduitWritableMessageChannel.`getWriteListener()`
Methods in org.xnio.conduits with parameters of type ChannelListener
Modifier and Type
Method
Description
`void`
ConduitReadableMessageChannel.`setCloseListener(ChannelListener<? super ConduitReadableMessageChannel> closeListener)`
`void`
ConduitStreamSinkChannel.`setCloseListener(ChannelListener<? super ConduitStreamSinkChannel> closeListener)`
`void`
ConduitStreamSourceChannel.`setCloseListener(ChannelListener<? super ConduitStreamSourceChannel> closeListener)`
`void`
ConduitWritableMessageChannel.`setCloseListener(ChannelListener<? super ConduitWritableMessageChannel> closeListener)`
`void`
ConduitReadableMessageChannel.`setReadListener(ChannelListener<? super ConduitReadableMessageChannel> readListener)`
`void`
ConduitStreamSourceChannel.`setReadListener(ChannelListener<? super ConduitStreamSourceChannel> readListener)`
`void`
ConduitStreamSinkChannel.`setWriteListener(ChannelListener<? super ConduitStreamSinkChannel> writeListener)`
`void`
ConduitWritableMessageChannel.`setWriteListener(ChannelListener<? super ConduitWritableMessageChannel> writeListener)`

## Uses of ChannelListener in org.xnio.http

Methods in org.xnio.http with parameters of type ChannelListener
Modifier and Type
Method
Description
`static IoFuture<StreamConnection>`
HttpUpgrade.`performUpgrade(XnioWorker worker, InetSocketAddress bindAddress, URI uri, Map<String,String> headers, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap, HandshakeChecker handshakeChecker)`
Connects to the target server using HTTP upgrade.
`static IoFuture<StreamConnection>`
HttpUpgrade.`performUpgrade(XnioWorker worker, InetSocketAddress bindAddress, URI uri, Map<String,List<String>> headers, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap, ExtendedHandshakeChecker handshakeChecker)`
Connects to the target server using HTTP upgrade.
`static IoFuture<SslConnection>`
HttpUpgrade.`performUpgrade(XnioWorker worker, XnioSsl ssl, InetSocketAddress bindAddress, URI uri, Map<String,String> headers, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap, HandshakeChecker handshakeChecker)`
Perform a HTTP upgrade that results in a SSL secured connection.
`static IoFuture<SslConnection>`
HttpUpgrade.`performUpgrade(XnioWorker worker, XnioSsl ssl, InetSocketAddress bindAddress, URI uri, Map<String,List<String>> headers, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap, ExtendedHandshakeChecker handshakeChecker)`
Perform a HTTP upgrade that results in a SSL secured connection.
`static <T extends StreamConnection>
IoFuture<T>`
HttpUpgrade.`performUpgrade(T connection, URI uri, Map<String,String> headers, ChannelListener<? super StreamConnection> openListener, HandshakeChecker handshakeChecker)`
Performs a HTTP upgrade on an existing connection.
`static <T extends StreamConnection>
IoFuture<T>`
HttpUpgrade.`performUpgrade(T connection, URI uri, Map<String,List<String>> headers, ChannelListener<? super StreamConnection> openListener, ExtendedHandshakeChecker handshakeChecker)`
Performs a HTTP upgrade on an existing connection.

## Uses of ChannelListener in org.xnio.ssl

Methods in org.xnio.ssl with parameters of type ChannelListener
Modifier and Type
Method
Description
`IoFuture<ConnectedSslStreamChannel>`
JsseXnioSsl.`connectSsl(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
`abstract IoFuture<ConnectedSslStreamChannel>`
XnioSsl.`connectSsl(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Deprecated.
`IoFuture<ConnectedSslStreamChannel>`
XnioSsl.`connectSsl(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)`
Deprecated.
`IoFuture<ConnectedSslStreamChannel>`
XnioSsl.`connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Deprecated.
`IoFuture<ConnectedSslStreamChannel>`
XnioSsl.`connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)`
Deprecated.
`AcceptingChannel<SslConnection>`
JsseXnioSsl.`createSslConnectionServer(XnioWorker worker, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<SslConnection>> acceptListener, OptionMap optionMap)`
`abstract AcceptingChannel<SslConnection>`
XnioSsl.`createSslConnectionServer(XnioWorker worker, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<SslConnection>> acceptListener, OptionMap optionMap)`
Create a bound TCP SSL server.
`AcceptingChannel<ConnectedSslStreamChannel>`
JsseXnioSsl.`createSslTcpServer(XnioWorker worker, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener, OptionMap optionMap)`
`abstract AcceptingChannel<ConnectedSslStreamChannel>`
XnioSsl.`createSslTcpServer(XnioWorker worker, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener, OptionMap optionMap)`
Deprecated.
`IoFuture<SslConnection>`
JsseXnioSsl.`openSslConnection(XnioIoThread ioThread, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
`IoFuture<SslConnection>`
JsseXnioSsl.`openSslConnection(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
`abstract IoFuture<SslConnection>`
XnioSsl.`openSslConnection(XnioIoThread ioThread, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Create an SSL connection to a remote host.
`IoFuture<SslConnection>`
XnioSsl.`openSslConnection(XnioIoThread ioThread, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap)`
Create an SSL connection to a remote host.
`IoFuture<SslConnection>`
XnioSsl.`openSslConnection(XnioIoThread ioThread, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Create an SSL connection to a remote host.
`IoFuture<SslConnection>`
XnioSsl.`openSslConnection(XnioIoThread ioThread, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap)`
Create an SSL connection to a remote host.
`abstract IoFuture<SslConnection>`
XnioSsl.`openSslConnection(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Create an SSL connection to a remote host.
`IoFuture<SslConnection>`
XnioSsl.`openSslConnection(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap)`
Create an SSL connection to a remote host.
`IoFuture<SslConnection>`
XnioSsl.`openSslConnection(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)`
Create an SSL connection to a remote host.
`IoFuture<SslConnection>`
XnioSsl.`openSslConnection(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap)`
Create an SSL connection to a remote host.