Class CronTriggerer
java.lang.Object
org.apache.pulsar.io.batchdiscovery.CronTriggerer
- All Implemented Interfaces:
org.apache.pulsar.io.core.BatchSourceTriggerer
This is an implementation of BatchSourceTriggerer that triggers based on a cron expression.
BatchSource developers using this should pass the json string of a map that contains
"__CRON__" key with the appropriate cron expression. The triggerer will trigger based on this expression.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CRON_KEY
- See Also:
-
-
Constructor Details
-
CronTriggerer
public CronTriggerer()
-
-
Method Details
-
init
- Specified by:
initin interfaceorg.apache.pulsar.io.core.BatchSourceTriggerer
-
start
- Specified by:
startin interfaceorg.apache.pulsar.io.core.BatchSourceTriggerer
-
stop
public void stop()- Specified by:
stopin interfaceorg.apache.pulsar.io.core.BatchSourceTriggerer
-