Class EventConflaterChain
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.conflation.EventConflaterChain
-
- All Implemented Interfaces:
IEventConflater
public class EventConflaterChain extends Object implements 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
Fields Modifier and Type Field Description static long
DEFAULT_INITIAL_DELAY
static long
DEFAULT_REFRESH_INTERVAL
-
Constructor Summary
Constructors Constructor Description EventConflaterChain()
EventConflaterChain(long refreshInterval, long initialDelay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(IEventConflater conflater)
void
addEvent(ILayerEvent event)
void
clearQueue()
Runnable
getConflaterTask()
int
getCount()
void
start()
void
stop()
-
-
-
Field Detail
-
DEFAULT_INITIAL_DELAY
public static final long DEFAULT_INITIAL_DELAY
- See Also:
- Constant Field Values
-
DEFAULT_REFRESH_INTERVAL
public static final long DEFAULT_REFRESH_INTERVAL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
add
public void add(IEventConflater conflater)
-
start
public void start()
-
stop
public void stop()
-
addEvent
public void addEvent(ILayerEvent event)
- Specified by:
addEvent
in interfaceIEventConflater
-
clearQueue
public void clearQueue()
- Specified by:
clearQueue
in interfaceIEventConflater
-
getCount
public int getCount()
- Specified by:
getCount
in interfaceIEventConflater
- Returns:
- Number of events currently waiting to be handled
-
getConflaterTask
public Runnable getConflaterTask()
- Specified by:
getConflaterTask
in interfaceIEventConflater
-
-