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 interface
Registered withEventStreamRegistry
to create concrete implementation ofEventStreamSource
from the provided configuration.static interface
Interface for submitting events to the Event Stream. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called onEventStreamSource
shutdown.void
onStartup
(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 onEventStreamSource
shutdown. No more events should be sent throughEventStreamSource.Subscriber
. If events are submitted after, they'll immediately complete with Error result.
-