public class PeriodicFakeEventSource extends java.lang.Object implements EventSource
| Modifier | Constructor and Description |
|---|---|
|
PeriodicFakeEventSource(org.w3c.dom.Element config) |
protected |
PeriodicFakeEventSource(MicroSecondDate startTime,
TimeInterval interval,
int numEvents) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription() |
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() |
protected PeriodicFakeEventSource(MicroSecondDate startTime, TimeInterval interval, int numEvents)
public PeriodicFakeEventSource(org.w3c.dom.Element config)
throws ConfigurationException
ConfigurationExceptionpublic java.lang.String getDescription()
getDescription in interface EventSourcepublic MicroSecondTimeRange getEventTimeRange()
getEventTimeRange in interface EventSourcepublic TimeInterval getWaitBeforeNext()
EventSourcegetWaitBeforeNext in interface EventSourcepublic boolean hasNext()
hasNext in interface EventSourcepublic CacheEvent[] next()
next in interface EventSource