java.lang.Object
org.firebirdsql.gds.ng.AbstractEventHandle
- All Implemented Interfaces:
EventHandle
- Direct Known Subclasses:
WireEventHandle
Abstract implementation for event handle.
- Since:
- 3.0
- Author:
- Mark Rotteveel
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractEventHandle(String eventName, EventHandler eventHandler) -
Method Summary
Modifier and TypeMethodDescriptionfinal intGet the count of event occurrences for the most recent occurrence(s) of the event for which this handle is registered.final StringGet the name of the event for which this handle is set to listen forprotected final voidprotected voidsetEventCount(int eventCount) Sets the current known event count for this handle.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.firebirdsql.gds.EventHandle
getEventId
-
Constructor Details
-
AbstractEventHandle
-
-
Method Details
-
getEventName
Description copied from interface:EventHandleGet the name of the event for which this handle is set to listen for- Specified by:
getEventNamein interfaceEventHandle- Returns:
- The name of the event
-
setEventCount
protected void setEventCount(int eventCount) Sets the current known event count for this handle.- Parameters:
eventCount- The event count
-
getEventCount
public final int getEventCount()Description copied from interface:EventHandleGet the count of event occurrences for the most recent occurrence(s) of the event for which this handle is registered.- Specified by:
getEventCountin interfaceEventHandle- Returns:
- The event count
-
onEventOccurred
protected final void onEventOccurred()
-