public abstract class SimpleEventSource extends java.lang.Object implements EventSource
Modifier and Type | Field and Description |
---|---|
boolean |
hasNextBeenCalled |
Constructor and Description |
---|
SimpleEventSource() |
Modifier and Type | Method and Description |
---|---|
MicroSecondDate |
extractBeginTime(CacheEvent ev) |
abstract CacheEvent[] |
getEvents() |
MicroSecondTimeRange |
getEventTimeRange() |
TimeInterval |
getWaitBeforeNext()
If the source needs to wait for more events to arrive, it should return
the amount of time it wants to wait with this method.
|
boolean |
hasNext() |
CacheEvent[] |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription
public abstract CacheEvent[] getEvents()
public boolean hasNext()
hasNext
in interface EventSource
public CacheEvent[] next()
next
in interface EventSource
public TimeInterval getWaitBeforeNext()
EventSource
getWaitBeforeNext
in interface EventSource
public MicroSecondTimeRange getEventTimeRange()
getEventTimeRange
in interface EventSource
public MicroSecondDate extractBeginTime(CacheEvent ev)