Class TagEventSource
java.lang.Object
com.inductiveautomation.eventstream.gateway.sources.TagEventSource
- All Implemented Interfaces:
EventStreamSource
A source that listens for tag changes and publishes them as events. One listener is used for all tag paths
provided in config. Individual listeners are created for each tag path on received event. This allows for a
wildcard subscription to track changes to individual tag paths.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.eventstream.gateway.api.EventStreamSource
EventStreamSource.Factory, EventStreamSource.Subscriber
-
Constructor Summary
ConstructorsConstructorDescriptionTagEventSource
(TagManager tagManager, TagEventSourceConfig config, com.inductiveautomation.ignition.common.tags.config.model.TagReferenceLocation tagRefLocation) -
Method Summary
Modifier and TypeMethodDescriptionstatic EventStreamSource.Factory
createFactory
(TagManager tagManager) void
Called onEventStreamSource
shutdown.void
onStartup
(EventStreamSource.Subscriber subscriber) Called on Event Stream startup.
-
Constructor Details
-
TagEventSource
public TagEventSource(TagManager tagManager, TagEventSourceConfig config, com.inductiveautomation.ignition.common.tags.config.model.TagReferenceLocation tagRefLocation)
-
-
Method Details
-
createFactory
-
onStartup
Description copied from interface:EventStreamSource
Called on Event Stream startup. Events can safely be sent toEventStreamSource.Subscriber.submitEvents(java.util.List<com.inductiveautomation.eventstream.EventPayload>)
orEventStreamSource.Subscriber.submitEvent(com.inductiveautomation.eventstream.EventPayload)
.- Specified by:
onStartup
in interfaceEventStreamSource
-
onShutdown
public void onShutdown()Description copied from interface:EventStreamSource
Called onEventStreamSource
shutdown. No more events should be sent throughEventStreamSource.Subscriber
. If events are submitted after, they'll immediately complete with Error result.- Specified by:
onShutdown
in interfaceEventStreamSource
-