T - The type of events this event source creates. This is usually the
same as the event of the shared source but it may also be different.@ConfigurationDescription(properties=) public interface SharingSource<T extends Event> extends EventSource<T>, EventHandler
SharedPollingSource. The SharedPollingSource
combines polling for several sharing sources, for instance by creating an
appropriate SQL statement. Combination is based on the common parts of the
configuration of the sharing sources. The sharing sources are identified,
usually via their process context (DataContext). This allows for
instance to determine which parts of a result set belong to which sharing
source. SharingSource usually never runs but waits
for the event notified via EventHandler.handleEvent(Event, boolean). Since it
does not poll itself, the configured poll time is merely a hint for the
shared source in which intervals to poll. Obviously the first polling for a
sharing source may occur at an arbitrary point in time between its creation
and the poll time elapsing the first time. Afterwards polling will be done
regularly.| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfiguration()
Gets the (final) configuration of this sharing source.
|
SerialisableDataContext |
getDataContext()
Gets the data context of this sharing source.
|
java.lang.String |
getSharedSourceEventType()
Gets the event type of the shared event source, that is the event type of
the event source used by this sharing source.
|
java.lang.String |
getSharedSourceId()
Gets the ID of the shared event source, that is the ID of the event source
used by this sharing source.
|
java.lang.String |
getSharedSourceType()
Gets the type of the shared event source, that is the type of the event
source used by this sharing source.
|
void |
setSharedSourceId(java.lang.String sourceId)
Sets the ID of the shared event source, that is the ID of the event source
used by this sharing source.
|
addAll, addHandler, getEventHandler, getHierarchicalSourceName, getID, getType, removeHandler, setConfigurationgetID, handleEvent, isConsuming, isExclusive, isInterruptiblejava.lang.String getSharedSourceEventType()
java.lang.String getSharedSourceType()
EventSource.getType()).java.lang.String getSharedSourceId()
null until
explicitly set by the event
manager.null in case the
ID has not been set yet.void setSharedSourceId(java.lang.String sourceId)
sourceId - The ID of the shared event source, that is the ID of the
event source used by this sharing source.Configuration getConfiguration()
SerialisableDataContext getDataContext()