|
XNIO API 3.0.7.GA | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| 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
|
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
|
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
|
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
|
ChannelListeners.executorChannelListener(ChannelListener<T> listener,
Executor executor)
Get a channel listener which executes a delegate channel listener via an executor. |
|
static
|
ChannelListeners.getChannelListenerTask(T channel,
ChannelListener<? super T> channelListener)
Get a task which invokes the given channel listener on the given channel. |
|
static
|
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
|
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
|
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
|
ChannelListeners.getSetter(AtomicReference<ChannelListener<? super T>> atomicReference)
Get a setter based on an atomic reference. |
|
static
|
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
|
Channels.setAcceptListener(T channel,
ChannelListener<? super T> listener)
Set the accept listener for a channel (type-safe). |
|
static
|
Channels.setCloseListener(T channel,
ChannelListener<? super T> listener)
Set the close listener for a channel (type-safe). |
|
static
|
Channels.setReadListener(T channel,
ChannelListener<? super T> listener)
Set the read listener for a channel (type-safe). |
|
static
|
Channels.setWriteListener(T channel,
ChannelListener<? super T> listener)
Set the write listener for a channel (type-safe). |
|
| Uses of ChannelListener in org.xnio.ssl |
|---|
|
XNIO API 3.0.7.GA | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||