public final class WireEventHandle extends AbstractEventHandle implements AsynchronousChannelListener
AsynchronousChannelListener.Event| Constructor and Description |
|---|
WireEventHandle(java.lang.String eventName,
EventHandler eventHandler,
Encoding encoding) |
| Modifier and Type | Method and Description |
|---|---|
int |
assignNewLocalId()
Generates a new local id for this event.
|
void |
calculateCount() |
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.
|
int |
getEventId()
Get the internal event id number for this handle
|
int |
getLocalId() |
void |
setEventId(int eventId) |
byte[] |
toByteArray() |
java.lang.String |
toString() |
getEventCount, getEventName, onEventOccurred, setEventCountpublic WireEventHandle(java.lang.String eventName,
EventHandler eventHandler,
Encoding encoding)
public void calculateCount()
public void setEventId(int eventId)
eventId - The server side id of this eventpublic int getEventId()
EventHandlegetEventId in interface EventHandlepublic int assignNewLocalId()
public int getLocalId()
public byte[] toByteArray()
throws java.io.IOException
java.io.IOExceptionpublic 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 receivedpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2001-2023 Jaybird (Firebird JDBC/JCA) team. All rights reserved.