Class EventConflaterChain
java.lang.Object
org.eclipse.nebula.widgets.nattable.conflation.EventConflaterChain
- All Implemented Interfaces:
IEventConflater
A Chain of Conflaters. Every conflater in the chain is given the chance to
queue an event. When the chain runs every conflater in the chain can run its
own task to handle the events as it sees fit.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(IEventConflater conflater) voidaddEvent(ILayerEvent event) voidintgetCount()voidstart()voidstop()
-
Field Details
-
DEFAULT_INITIAL_DELAY
public static final long DEFAULT_INITIAL_DELAY- See Also:
-
DEFAULT_REFRESH_INTERVAL
public static final long DEFAULT_REFRESH_INTERVAL- See Also:
-
-
Constructor Details
-
EventConflaterChain
public EventConflaterChain() -
EventConflaterChain
public EventConflaterChain(long refreshInterval, long initialDelay) - Parameters:
refreshInterval- the delay between the termination of one execution and the commencement of the nextinitialDelay- the time to delay first execution- Since:
- 2.0
-
-
Method Details
-
add
-
start
public void start() -
stop
public void stop() -
addEvent
- Specified by:
addEventin interfaceIEventConflater
-
clearQueue
public void clearQueue()- Specified by:
clearQueuein interfaceIEventConflater
-
getCount
public int getCount()- Specified by:
getCountin interfaceIEventConflater- Returns:
- Number of events currently waiting to be handled
-
getConflaterTask
- Specified by:
getConflaterTaskin interfaceIEventConflater
-