类 CronTriggerer

java.lang.Object
org.apache.pulsar.io.batchdiscovery.CronTriggerer
所有已实现的接口:
org.apache.pulsar.io.core.BatchSourceTriggerer

public class CronTriggerer extends Object implements 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.
  • 字段详细资料

  • 构造器详细资料

    • CronTriggerer

      public CronTriggerer()
  • 方法详细资料

    • init

      public void init(Map<String,Object> config, org.apache.pulsar.io.core.SourceContext sourceContext)
      指定者:
      init 在接口中 org.apache.pulsar.io.core.BatchSourceTriggerer
    • start

      public void start(Consumer<String> trigger)
      指定者:
      start 在接口中 org.apache.pulsar.io.core.BatchSourceTriggerer
    • stop

      public void stop()
      指定者:
      stop 在接口中 org.apache.pulsar.io.core.BatchSourceTriggerer