Package org.firebirdsql.gds.ng
Class AbstractEventHandle
- java.lang.Object
- 
- org.firebirdsql.gds.ng.AbstractEventHandle
 
- 
- All Implemented Interfaces:
- EventHandle
 - Direct Known Subclasses:
- JnaEventHandle,- WireEventHandle
 
 public abstract class AbstractEventHandle extends java.lang.Object implements EventHandle Abstract implementation for event handle.- Since:
- 3.0
- Author:
- Mark Rotteveel
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractEventHandle(java.lang.String eventName, EventHandler eventHandler)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEventCount()Get the count of event occurrences for the most recent occurrence(s) of the event for which this handle is registered.java.lang.StringgetEventName()Get the name of the event for which this handle is set to listen forprotected voidonEventOccurred()protected voidsetEventCount(int eventCount)Sets the current known event count for this handle.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.firebirdsql.gds.EventHandlegetEventId
 
- 
 
- 
- 
- 
Constructor Detail- 
AbstractEventHandleprotected AbstractEventHandle(java.lang.String eventName, EventHandler eventHandler)
 
- 
 - 
Method Detail- 
getEventNamepublic final java.lang.String getEventName() Description copied from interface:EventHandleGet the name of the event for which this handle is set to listen for- Specified by:
- getEventNamein interface- EventHandle
- Returns:
- The name of the event
 
 - 
setEventCountprotected void setEventCount(int eventCount) Sets the current known event count for this handle.- Parameters:
- eventCount- The event count
 
 - 
getEventCountpublic 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 interface- EventHandle
- Returns:
- The event count
 
 - 
onEventOccurredprotected final void onEventOccurred() 
 
- 
 
-