Interface CronScheduler

All Superinterfaces:
HasVertx, Scheduler<CronTrigger>

public interface CronScheduler extends Scheduler<CronTrigger>
A timebase scheduler supports the cron-like scheduling.
Since:
2.0.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static <IN, OUT> CronSchedulerBuilder<IN,OUT>
     
    void
    Cancel scheduler
    void
    Start and run the scheduler in Vertx worker thread pool.
    void
    start(io.vertx.core.WorkerExecutor workerExecutor)
    Start and run the scheduler in a dedicated thread pool that is provided by a customized worker executor
    @NotNull CronTrigger
     
    @NotNull io.vertx.core.Vertx
    Vertx
  • Method Details

    • builder

      static <IN, OUT> CronSchedulerBuilder<IN,OUT> builder()
    • vertx

      @NotNull @NotNull io.vertx.core.Vertx vertx()
      Description copied from interface: HasVertx
      Vertx
      Specified by:
      vertx in interface HasVertx
      Returns:
      vertx
    • trigger

      @NotNull @NotNull CronTrigger trigger()
    • start

      void start()
      Description copied from interface: Scheduler
      Start and run the scheduler in Vertx worker thread pool.
      Specified by:
      start in interface Scheduler<CronTrigger>
    • start

      void start(io.vertx.core.WorkerExecutor workerExecutor)
      Description copied from interface: Scheduler
      Start and run the scheduler in a dedicated thread pool that is provided by a customized worker executor
      Specified by:
      start in interface Scheduler<CronTrigger>
      Parameters:
      workerExecutor - worker executor
      See Also:
      • WorkerExecutor
    • cancel

      void cancel()
      Description copied from interface: Scheduler
      Cancel scheduler
      Specified by:
      cancel in interface Scheduler<CronTrigger>