Interface EventStreamSource
- All Known Implementing Classes:
FileSource,GatewayEventSource,LastEventSource,SuppliedSource,TagEventSource
public interface EventStreamSource
Provides
EventPayload to the Event Stream through the EventStreamSource.Subscriber interface.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRegistered withEventStreamRegistryto create concrete implementation ofEventStreamSourcefrom the provided configuration.static interfaceInterface for submitting events to the Event Stream. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled onEventStreamSourceshutdown.voidonStartup(EventStreamSource.Subscriber subscriber) Called on Event Stream startup.
-
Method Details
-
onStartup
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). -
onShutdown
void onShutdown()Called onEventStreamSourceshutdown. No more events should be sent throughEventStreamSource.Subscriber. If events are submitted after, they'll immediately complete with Error result.
-