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, waitgetDescriptionpublic abstract CacheEvent[] getEvents()
public boolean hasNext()
hasNext in interface EventSourcepublic CacheEvent[] next()
next in interface EventSourcepublic TimeInterval getWaitBeforeNext()
EventSourcegetWaitBeforeNext in interface EventSourcepublic MicroSecondTimeRange getEventTimeRange()
getEventTimeRange in interface EventSourcepublic MicroSecondDate extractBeginTime(CacheEvent ev)