Package org.firebirdsql.gds.ng.wire
Class AsynchronousChannelListenerDispatcher
- java.lang.Object
- 
- org.firebirdsql.gds.ng.listeners.AbstractListenerDispatcher<AsynchronousChannelListener>
- 
- org.firebirdsql.gds.ng.wire.AsynchronousChannelListenerDispatcher
 
 
- 
- All Implemented Interfaces:
- java.lang.Iterable<AsynchronousChannelListener>,- AsynchronousChannelListener
 
 public class AsynchronousChannelListenerDispatcher extends AbstractListenerDispatcher<AsynchronousChannelListener> implements AsynchronousChannelListener Dispatcher forAsynchronousChannelListener.- Since:
- 3.0
- Author:
- Mark Rotteveel
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.firebirdsql.gds.ng.wire.AsynchronousChannelListenerAsynchronousChannelListener.Event
 
- 
 - 
Constructor SummaryConstructors Constructor Description AsynchronousChannelListenerDispatcher()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelClosing(FbWireAsynchronousChannel channel)Signals the closing of an asynchronous channel.voideventReceived(FbWireAsynchronousChannel channel, AsynchronousChannelListener.Event event)Signals that an event has been received.- 
Methods inherited from class org.firebirdsql.gds.ng.listeners.AbstractListenerDispatcheraddListener, addWeakListener, isShutdown, iterator, removeAllListeners, removeListener, shutdown
 
- 
 
- 
- 
- 
Method Detail- 
channelClosingpublic void channelClosing(FbWireAsynchronousChannel channel) Description copied from interface:AsynchronousChannelListenerSignals the closing of an asynchronous channel.Fired before the channel is actually closed. - Specified by:
- channelClosingin interface- AsynchronousChannelListener
- Parameters:
- channel- The channel that is being closed
 
 - 
eventReceivedpublic void eventReceived(FbWireAsynchronousChannel channel, AsynchronousChannelListener.Event event) Description copied from interface:AsynchronousChannelListenerSignals that an event has been received.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. - Specified by:
- eventReceivedin interface- AsynchronousChannelListener
- Parameters:
- channel- The channel that received the event
- event- The event received
 
 
- 
 
-