Uses of Interface
org.xnio.ChannelListener
Packages that use ChannelListener
Package
Description
The main API package for XNIO.
The core XNIO channel API.
The XNIO conduit SPI.
Utility classes for using and implementing SSL within XNIO providers.
-
Uses of ChannelListener in org.xnio
Classes in org.xnio that implement ChannelListenerModifier and TypeClassDescriptionfinal 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 ChannelListenerModifier and TypeMethodDescriptionstatic 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 ChannelListenerModifier and TypeMethodDescriptionstatic <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 ChannelListenerModifier and TypeMethodDescriptionChannelDestination.accept
(ChannelListener<? super T> openListener, ChannelListener<? super BoundChannel> bindListener) Accept a connection.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.XnioIoFactory.acceptMessageConnection
(SocketAddress destination, ChannelListener<? super MessageConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Accept a message connection at a destination address.XnioIoThread.acceptMessageConnection
(SocketAddress destination, ChannelListener<? super MessageConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) XnioWorker.acceptMessageConnection
(SocketAddress destination, ChannelListener<? super MessageConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) XnioWorker.acceptStream
(SocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Deprecated.XnioIoFactory.acceptStreamConnection
(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Accept a stream connection at a destination address.XnioIoThread.acceptStreamConnection
(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) 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.XnioWorker.connectDatagram
(SocketAddress bindAddress, SocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Deprecated.XnioWorker.connectDatagram
(SocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Deprecated.XnioWorker.connectStream
(SocketAddress bindAddress, SocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Deprecated.XnioWorker.connectStream
(SocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Deprecated.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.void
XnioWorker.createPipe
(ChannelListener<? super StreamChannel> leftOpenListener, ChannelListener<? super StreamChannel> rightOpenListener, OptionMap optionMap) Deprecated.Users should prefer the simplerXnioWorker.createFullDuplexPipe()
instead.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.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.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>
voidChannelListeners.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>
voidChannelListeners.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>
booleanChannelListeners.invokeChannelListener
(T channel, ChannelListener<? super T> channelListener) Invoke a channel listener on a given channel, logging any errors.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.XnioIoFactory.openMessageConnection
(SocketAddress destination, ChannelListener<? super MessageConnection> openListener, OptionMap optionMap) Connect to a remote message server.XnioIoThread.openMessageConnection
(SocketAddress destination, ChannelListener<? super MessageConnection> openListener, OptionMap optionMap) XnioWorker.openMessageConnection
(SocketAddress destination, ChannelListener<? super MessageConnection> openListener, OptionMap optionMap) XnioIoFactory.openStreamConnection
(SocketAddress bindAddress, SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Connect to a remote stream server.XnioIoFactory.openStreamConnection
(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Connect to a remote stream server.XnioIoFactory.openStreamConnection
(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, OptionMap optionMap) Connect to a remote stream server.XnioIoThread.openStreamConnection
(SocketAddress bindAddress, SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) XnioIoThread.openStreamConnection
(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) XnioIoThread.openStreamConnection
(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, OptionMap optionMap) XnioWorker.openStreamConnection
(SocketAddress bindAddress, SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) XnioWorker.openStreamConnection
(SocketAddress destination, ChannelListener<? super StreamConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) 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, ornull
to ignore the associated event type.void
ChannelListener.SimpleSetter.set
(ChannelListener<? super T> listener) Set the listener, ornull
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 ChannelListenerModifier and TypeMethodDescriptionstatic <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 ChannelListenerModifierConstructorDescriptionChainedChannelListener
(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 ChannelListenerModifier and TypeMethodDescriptionChannelListener<? super C>
AcceptListenerSettable.getAcceptListener()
Get the accept listener.ChannelListener<? super C>
CloseListenerSettable.getCloseListener()
Get the close listener.ChannelListener<? super EmptyStreamSourceChannel>
EmptyStreamSourceChannel.getCloseListener()
FixedLengthStreamSinkChannel.getCloseListener()
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()
FixedLengthStreamSourceChannel.getReadListener()
ChannelListener<? super C>
ReadListenerSettable.getReadListener()
Get the read listener.ChannelListener<? super SplitStreamSourceChannel>
SplitStreamSourceChannel.getReadListener()
ChannelListener<? super C>
TranslatingSuspendableChannel.getReadListener()
Deprecated.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 ChannelListenerModifier and TypeMethodDescriptionvoid
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<?>>
voidChannels.setAcceptListener
(T channel, ChannelListener<? super T> listener) Set the accept listener for a channel (type-safe).static <T extends CloseableChannel>
voidChannels.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>
voidChannels.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>
voidChannels.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 ChannelListenerModifierConstructorDescriptionFixedLengthStreamSinkChannel
(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 ChannelListenerModifier and TypeMethodDescriptionConduitReadableMessageChannel.getCloseListener()
ChannelListener<? super ConduitStreamSinkChannel>
ConduitStreamSinkChannel.getCloseListener()
ConduitStreamSourceChannel.getCloseListener()
ConduitWritableMessageChannel.getCloseListener()
ConduitReadableMessageChannel.getReadListener()
ConduitStreamSourceChannel.getReadListener()
ChannelListener<? super ConduitStreamSinkChannel>
ConduitStreamSinkChannel.getWriteListener()
ConduitWritableMessageChannel.getWriteListener()
Methods in org.xnio.conduits with parameters of type ChannelListenerModifier and TypeMethodDescriptionvoid
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 ChannelListenerModifier and TypeMethodDescriptionstatic 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 ChannelListenerModifier and TypeMethodDescriptionJsseXnioSsl.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.XnioSsl.connectSsl
(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap) Deprecated.XnioSsl.connectSsl
(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Deprecated.XnioSsl.connectSsl
(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap) Deprecated.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.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.JsseXnioSsl.openSslConnection
(XnioIoThread ioThread, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) 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.XnioSsl.openSslConnection
(XnioIoThread ioThread, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap) Create an SSL connection to a remote host.XnioSsl.openSslConnection
(XnioIoThread ioThread, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Create an SSL connection to a remote host.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.XnioSsl.openSslConnection
(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap) Create an SSL connection to a remote host.XnioSsl.openSslConnection
(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Create an SSL connection to a remote host.XnioSsl.openSslConnection
(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap) Create an SSL connection to a remote host.
XnioWorker.createHalfDuplexPipe()
instead.