public class CronTrigger extends AbstractTrigger implements org.quartz.Job
Trigger
which will trigger events based on a cron expression.Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
LOG |
Constructor and Description |
---|
CronTrigger() |
Modifier and Type | Method and Description |
---|---|
void |
execute(org.quartz.JobExecutionContext jobExecutionContext) |
String |
getId() |
io.siddhi.query.api.definition.TriggerDefinition |
getTriggerDefinition() |
void |
init(io.siddhi.query.api.definition.TriggerDefinition triggerDefinition,
SiddhiAppContext siddhiAppContext,
StreamJunction streamJunction) |
boolean |
isStateful() |
void |
start()
This will be called only once and this can be used to acquire
required resources for the processing element.
|
void |
stop()
This will be called only once and this can be used to release
the acquired resources for processing.
|
public void init(io.siddhi.query.api.definition.TriggerDefinition triggerDefinition, SiddhiAppContext siddhiAppContext, StreamJunction streamJunction)
init
in class AbstractTrigger
public io.siddhi.query.api.definition.TriggerDefinition getTriggerDefinition()
getTriggerDefinition
in interface Trigger
public void start()
start
in interface Trigger
start
in interface ExternalReferencedHolder
public void stop()
stop
in interface Trigger
stop
in interface ExternalReferencedHolder
public void execute(org.quartz.JobExecutionContext jobExecutionContext) throws org.quartz.JobExecutionException
execute
in interface org.quartz.Job
org.quartz.JobExecutionException
public boolean isStateful()
isStateful
in interface Trigger
Copyright © 2019. All rights reserved.