Class AbstractJob

java.lang.Object
ru.tinkoff.kora.scheduling.jdk.AbstractJob
All Implemented Interfaces:
ru.tinkoff.kora.application.graph.Lifecycle
Direct Known Subclasses:
FixedDelayJob, FixedRateJob, RunOnceJob

public abstract class AbstractJob extends Object implements ru.tinkoff.kora.application.graph.Lifecycle
  • Constructor Details

    • AbstractJob

      public AbstractJob(ru.tinkoff.kora.scheduling.common.telemetry.SchedulingTelemetry telemetry, ScheduledExecutorService service, Runnable command)
  • Method Details

    • init

      public final reactor.core.publisher.Mono<?> init()
      Specified by:
      init in interface ru.tinkoff.kora.application.graph.Lifecycle
    • schedule

      protected abstract ScheduledFuture<?> schedule(ScheduledExecutorService service, Runnable command)
    • release

      public final reactor.core.publisher.Mono<?> release()
      Specified by:
      release in interface ru.tinkoff.kora.application.graph.Lifecycle