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.
|
protected void |
logError(java.lang.String message,
java.lang.Throwable throwable) |
addListener, addWeakListener, isShutdown, iterator, notify, removeAllListeners, removeListener, shutdown
public AsynchronousChannelListenerDispatcher()
public void channelClosing(FbWireAsynchronousChannel channel)
AsynchronousChannelListener
Fired before the channel is actually closed.
channelClosing
in interface AsynchronousChannelListener
channel
- The channel that is being closedpublic void eventReceived(FbWireAsynchronousChannel channel, AsynchronousChannelListener.Event event)
AsynchronousChannelListener
Implementations 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 AsynchronousChannelListener
channel
- The channel that received the eventevent
- The event receivedprotected void logError(java.lang.String message, java.lang.Throwable throwable)
logError
in class AbstractListenerDispatcher<AsynchronousChannelListener>
Copyright © 2001-2024 Jaybird (Firebird JDBC) team. All rights reserved.