Class ScriptHandler
java.lang.Object
com.inductiveautomation.eventstream.gateway.handlers.ScriptHandler
- All Implemented Interfaces:
EventStreamHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.eventstream.gateway.api.EventStreamHandler
EventStreamHandler.Descriptor, EventStreamHandler.Factory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EventStreamHandler.Factory
createFactory
(Supplier<ScriptManager> scriptManager) void
handle
(List<EventPayload> events, boolean testMode) Called when a batch of events is ready to be processed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.eventstream.gateway.api.EventStreamHandler
onShutdown, onStartup
-
Constructor Details
-
ScriptHandler
-
-
Method Details
-
createFactory
-
handle
Description copied from interface:EventStreamHandler
Called when a batch of events is ready to be processed. It's important that an exception is throw on errors encountered during handling of events. If an exception is encountered, it should be expected that the method may be called again in the future with the same events. This is determined by the failure strategy specified by the Event Stream configuration.- Specified by:
handle
in interfaceEventStreamHandler
- Parameters:
events
- List of events to process.testMode
- True, if Event Stream is running in test mode. If running in testMode, expressions should be evaluated with no other side effects.
-