T - The type of events this event source creates.@ConfigurationDescription(properties={@Property(name="PollTime",type=LONG,defaultValue="300000",description="The time in milliseconds this event source polls. This is a time span between two polls. If handling the previous event takes longer than this time span, the next poll will take place right after the handling has completed."),}) public interface PollingSource<T extends Event> extends EventSource<T>
Runnable.run() has terminated, the next poll will be
delayed. | Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONF_POLL_TIME
Configuration key for the time in milliseconds between two polls.
|
static java.lang.String |
CONF_START_TIME
Configuration key for the absolute point in time to use for calculating the
start time.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getPollTime()
Gets the time in milliseconds this event source polls, more precisely, the
time span between two polls.
|
long |
getStartTime()
Gets the absolute time in milliseconds since midnight, January 1, 1970 UTC
when this polling source should start polling.
|
void |
init()
Initialises this polling source.
|
void |
terminate()
Terminates this polling source.
|
addAll, addHandler, getEventHandler, getHierarchicalSourceName, getID, getType, removeHandler, setConfigurationstatic final java.lang.String CONF_POLL_TIME
static final java.lang.String CONF_START_TIME
long getPollTime()
init() and terminate() will be called.long getStartTime()
getPollTime().void init()
void terminate()