T - The type of events this event source creates.public interface SharedPollingSource<T extends Event> extends PollingSource<T>
SharedPollingSource unifies the polling for several
SharingSource-instances. It checks for whether they can be
combined, usually by checking several of their configuration values, and
polls combined. Each polling can concern several shared sources. Therefore
the polling result is split appropriately (it may also be provided as one),
the affected sharing sources are determined and notified via
EventHandler.CONF_POLL_TIME, CONF_START_TIME| Modifier and Type | Method and Description |
|---|---|
boolean |
addSharingSource(SharingSource<?> source)
Adds the designated sharing source at this shared source.
|
boolean |
removeSharingSource(SharingSource<?> source)
Removes the designated sharing source from this shared source.
|
boolean |
supportsSharingSource(SharingSource<?> source)
Gets whether this shared source can handle the designated sharing source
and combine it with the already registered sharing sources.
|
getPollTime, getStartTime, init, terminateaddAll, addHandler, getEventHandler, getHierarchicalSourceName, getID, getType, removeHandler, setConfigurationboolean supportsSharingSource(SharingSource<?> source)
source - The source that wants to share a source for polling.boolean addSharingSource(SharingSource<?> source)
source - The source that wants to share a source for polling.supportsSharingSource(SharingSource).boolean removeSharingSource(SharingSource<?> source)
source - The source that does no longer want to share a source for
polling.