public class AsynchronousChannelListenerDispatcher extends AbstractListenerDispatcher<AsynchronousChannelListener> implements AsynchronousChannelListener
AsynchronousChannelListener.AsynchronousChannelListener.Event| Constructor and Description |
|---|
AsynchronousChannelListenerDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
channelClosing(FbWireAsynchronousChannel channel)
Signals the closing of an asynchronous channel.
|
void |
eventReceived(FbWireAsynchronousChannel channel,
AsynchronousChannelListener.Event event)
Signals that an event has been received.
|
addListener, addWeakListener, isShutdown, iterator, removeAllListeners, removeListener, shutdownpublic AsynchronousChannelListenerDispatcher()
public void channelClosing(FbWireAsynchronousChannel channel)
AsynchronousChannelListenerFired before the channel is actually closed.
channelClosing in interface AsynchronousChannelListenerchannel - The channel that is being closedpublic void eventReceived(FbWireAsynchronousChannel channel, AsynchronousChannelListener.Event event)
AsynchronousChannelListenerImplementations should take care to only perform short processing on the current thread. If longer or complicated processing is necessary, please offload it to another thread or executor.
eventReceived in interface AsynchronousChannelListenerchannel - The channel that received the eventevent - The event receivedCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.