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.FactorycreateFactory(EncoderRegistry encoders) voidCalled onEventStreamSourceshutdown.voidonStartup(EventStreamSource.Subscriber subscriber) Called on Event Stream startup.
-
Constructor Details
-
SuppliedSource
-
-
Method Details
-
createFactory
-
onStartup
Description copied from interface:EventStreamSourceCalled 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:
onStartupin interfaceEventStreamSource
-
onShutdown
public void onShutdown()Description copied from interface:EventStreamSourceCalled onEventStreamSourceshutdown. No more events should be sent throughEventStreamSource.Subscriber. If events are submitted after, they'll immediately complete with Error result.- Specified by:
onShutdownin interfaceEventStreamSource
-