Package io.siddhi.core.trigger
Class StartTrigger
- java.lang.Object
-
- io.siddhi.core.trigger.AbstractTrigger
-
- io.siddhi.core.trigger.StartTrigger
-
- All Implemented Interfaces:
Trigger,ExternalReferencedHolder
public class StartTrigger extends AbstractTrigger
Implementation ofTriggerwhich will trigger events when siddhi app in started.
-
-
Constructor Summary
Constructors Constructor Description StartTrigger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()io.siddhi.query.api.definition.TriggerDefinitiongetTriggerDefinition()voidinit(io.siddhi.query.api.definition.TriggerDefinition triggerDefinition, SiddhiAppContext siddhiAppContext, StreamJunction streamJunction)booleanisStateful()voidstart()This will be called only once and this can be used to acquire required resources for the processing element.voidstop()This will be called only once and this can be used to release the acquired resources for processing.
-
-
-
Method Detail
-
init
public void init(io.siddhi.query.api.definition.TriggerDefinition triggerDefinition, SiddhiAppContext siddhiAppContext, StreamJunction streamJunction)- Specified by:
initin classAbstractTrigger
-
getTriggerDefinition
public io.siddhi.query.api.definition.TriggerDefinition getTriggerDefinition()
-
getId
public String getId()
-
start
public void start()
This will be called only once and this can be used to acquire required resources for the processing element. This will be called after initializing the system and before starting to process the events.
-
stop
public void stop()
This will be called only once and this can be used to release the acquired resources for processing. This will be called before shutting down the system.
-
isStateful
public boolean isStateful()
-
-