Class SuppliedSource
java.lang.Object
com.inductiveautomation.eventstream.gateway.sources.SuppliedSource
- All Implemented Interfaces:
EventStreamSource
Emits only the Object provided by Supplier
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.eventstream.gateway.api.EventStreamSource
EventStreamSource.Factory, EventStreamSource.Subscriber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EventStreamSource.Factory
createFactory
(EncoderRegistry encoders) void
Called onEventStreamSource
shutdown.void
onStartup
(EventStreamSource.Subscriber subscriber) Called on Event Stream startup.
-
Constructor Details
-
SuppliedSource
-
-
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
-