XNIO API 3.0.7.GA

Uses of Interface
org.xnio.ChannelListener

Packages that use ChannelListener
org.xnio The main API package for XNIO. 
org.xnio.channels   
org.xnio.ssl   
 

Uses of ChannelListener in org.xnio
 

Methods in org.xnio that return ChannelListener
static ChannelListener<Channel> ChannelListeners.closingChannelListener()
          Get a channel listener which closes the channel when notified.
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.
 ChannelListener<? super T> ChannelListener.SimpleSetter.get()
          Get the channel listener set on this setter.
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.
 

Methods in org.xnio that return types with arguments of type ChannelListener
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
 IoFuture<? extends T> ChannelDestination.accept(ChannelListener<? super T> openListener, ChannelListener<? super BoundChannel> bindListener)
          Accept a connection.
 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)
          Accept a message connection at a destination address.
 IoFuture<ConnectedMessageChannel> XnioWorker.acceptDatagram(SocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Accept a message connection at a destination address.
protected  IoFuture<ConnectedMessageChannel> XnioWorker.acceptLocalDatagram(LocalSocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Implementation helper method to accept a local (UNIX domain) datagram connection.
protected  IoFuture<ConnectedMessageChannel> XnioWorker.acceptLocalDatagram(LocalSocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Implementation helper method to accept a local (UNIX domain) datagram connection.
protected  IoFuture<ConnectedStreamChannel> XnioWorker.acceptLocalStream(LocalSocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Implementation helper method to accept a local (UNIX domain) stream connection.
protected  IoFuture<ConnectedStreamChannel> XnioWorker.acceptLocalStream(LocalSocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Implementation helper method to accept a local (UNIX domain) stream connection.
 IoFuture<ConnectedStreamChannel> XnioWorker.acceptStream(SocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Accept a stream connection at a destination address.
 IoFuture<ConnectedStreamChannel> XnioWorker.acceptStream(SocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Accept a stream connection at a destination address.
protected  IoFuture<ConnectedStreamChannel> XnioWorker.acceptTcpStream(InetSocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Implementation helper method to accept a TCP connection.
protected  IoFuture<ConnectedStreamChannel> XnioWorker.acceptTcpStream(InetSocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Implementation helper method to accept a TCP connection.
 IoFuture<ConnectedMessageChannel> XnioWorker.connectDatagram(SocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Connect to a remote stream server.
 IoFuture<ConnectedMessageChannel> XnioWorker.connectDatagram(SocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Connect to a remote stream server.
 IoFuture<ConnectedMessageChannel> XnioWorker.connectDatagram(SocketAddress bindAddress, SocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Connect to a remote datagram server.
 IoFuture<ConnectedMessageChannel> XnioWorker.connectDatagram(SocketAddress bindAddress, SocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Connect to a remote datagram server.
protected  IoFuture<ConnectedMessageChannel> XnioWorker.connectLocalDatagram(LocalSocketAddress bindAddress, LocalSocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Implementation helper method to connect to a local (UNIX domain) datagram server.
protected  IoFuture<ConnectedMessageChannel> XnioWorker.connectLocalDatagram(LocalSocketAddress bindAddress, LocalSocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Implementation helper method to connect to a local (UNIX domain) datagram server.
protected  IoFuture<ConnectedStreamChannel> XnioWorker.connectLocalStream(LocalSocketAddress bindAddress, LocalSocketAddress destinationAddress, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Implementation helper method to connect to a local (UNIX domain) server.
protected  IoFuture<ConnectedStreamChannel> XnioWorker.connectLocalStream(LocalSocketAddress bindAddress, LocalSocketAddress destinationAddress, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Implementation helper method to connect to a local (UNIX domain) server.
 IoFuture<ConnectedStreamChannel> XnioWorker.connectStream(SocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Connect to a remote stream server.
 IoFuture<ConnectedStreamChannel> XnioWorker.connectStream(SocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Connect to a remote stream server.
 IoFuture<ConnectedStreamChannel> XnioWorker.connectStream(SocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, OptionMap optionMap)
          Connect to a remote stream server.
 IoFuture<ConnectedStreamChannel> XnioWorker.connectStream(SocketAddress bindAddress, SocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Connect to a remote stream server.
 IoFuture<ConnectedStreamChannel> XnioWorker.connectStream(SocketAddress bindAddress, SocketAddress destination, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Connect to a remote stream server.
protected  IoFuture<ConnectedStreamChannel> XnioWorker.connectTcpStream(InetSocketAddress bindAddress, InetSocketAddress destinationAddress, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Implementation helper method to connect to a TCP server.
protected  IoFuture<ConnectedStreamChannel> XnioWorker.connectTcpStream(InetSocketAddress bindAddress, InetSocketAddress destinationAddress, ChannelListener<? super ConnectedStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Implementation helper method to connect to a TCP server.
protected  IoFuture<ConnectedMessageChannel> XnioWorker.connectUdpDatagram(InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Implementation helper method to connect to a UDP server.
protected  IoFuture<ConnectedMessageChannel> XnioWorker.connectUdpDatagram(InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedMessageChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Implementation helper method to connect to a UDP server.
protected  AcceptingChannel<? extends ConnectedStreamChannel> XnioWorker.createLocalStreamServer(LocalSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedStreamChannel>> 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)
          Open a unidirectional stream pipe.
 void XnioWorker.createOneWayPipe(ChannelListener<? super StreamSourceChannel> sourceListener, ChannelListener<? super StreamSinkChannel> sinkListener, OptionMap optionMap)
          Open a unidirectional stream pipe.
 void XnioWorker.createPipe(ChannelListener<? super StreamChannel> leftOpenListener, ChannelListener<? super StreamChannel> rightOpenListener, OptionMap optionMap)
          Open a bidirectional stream pipe.
 void XnioWorker.createPipe(ChannelListener<? super StreamChannel> leftOpenListener, ChannelListener<? super StreamChannel> rightOpenListener, OptionMap optionMap)
          Open a bidirectional stream pipe.
 AcceptingChannel<? extends ConnectedStreamChannel> XnioWorker.createStreamServer(SocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedStreamChannel>> acceptListener, OptionMap optionMap)
          Create a stream server, for TCP or UNIX domain servers.
protected  AcceptingChannel<? extends ConnectedStreamChannel> XnioWorker.createTcpServer(InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedStreamChannel>> 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.executorChannelListener(ChannelListener<T> listener, Executor executor)
          Get a channel listener which executes a delegate channel listener via an executor.
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
<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.
 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.
 

Method parameters in org.xnio with type arguments of type ChannelListener
static
<T extends Channel>
ChannelListener.Setter<T>
ChannelListeners.getSetter(AtomicReference<ChannelListener<? super T>> atomicReference)
          Get a setter based on an atomic reference.
static
<T extends Channel,C>
ChannelListener.Setter<T>
ChannelListeners.getSetter(C channel, AtomicReferenceFieldUpdater<C,ChannelListener> updater)
          Get a setter based on an atomic reference field updater.
 

Uses of ChannelListener in org.xnio.channels
 

Methods in org.xnio.channels with parameters of type ChannelListener
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).
static
<T extends SuspendableReadChannel>
void
Channels.setReadListener(T channel, ChannelListener<? super T> listener)
          Set the read listener for a channel (type-safe).
static
<T extends SuspendableWriteChannel>
void
Channels.setWriteListener(T channel, ChannelListener<? super T> listener)
          Set the write listener for a channel (type-safe).
 

Uses of ChannelListener in org.xnio.ssl
 

Methods in org.xnio.ssl with parameters of type ChannelListener
abstract  IoFuture<ConnectedSslStreamChannel> XnioSsl.connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Create an SSL connection to a remote host.
abstract  IoFuture<ConnectedSslStreamChannel> XnioSsl.connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Create an SSL connection to a remote host.
 IoFuture<ConnectedSslStreamChannel> JsseXnioSsl.connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
           
 IoFuture<ConnectedSslStreamChannel> JsseXnioSsl.connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
           
abstract  IoFuture<ConnectedSslStreamChannel> XnioSsl.connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)
          Create an SSL connection to a remote host.
 IoFuture<ConnectedSslStreamChannel> JsseXnioSsl.connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)
           
abstract  IoFuture<ConnectedSslStreamChannel> XnioSsl.connectSsl(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Create an SSL connection to a remote host.
abstract  IoFuture<ConnectedSslStreamChannel> XnioSsl.connectSsl(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
          Create an SSL connection to a remote host.
 IoFuture<ConnectedSslStreamChannel> JsseXnioSsl.connectSsl(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
           
 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, OptionMap optionMap)
          Create an SSL connection to a remote host.
 IoFuture<ConnectedSslStreamChannel> JsseXnioSsl.connectSsl(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)
           
abstract  AcceptingChannel<ConnectedSslStreamChannel> XnioSsl.createSslTcpServer(XnioWorker worker, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener, OptionMap optionMap)
          Create a bound TCP SSL server.
 AcceptingChannel<ConnectedSslStreamChannel> JsseXnioSsl.createSslTcpServer(XnioWorker worker, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener, OptionMap optionMap)
           
 


XNIO API 3.0.7.GA

Copyright © 2010 JBoss, a division of Red Hat, Inc.