Class JobPollerImpl

java.lang.Object
io.camunda.zeebe.client.impl.worker.JobPollerImpl
All Implemented Interfaces:
JobPoller

public final class JobPollerImpl extends Object implements JobPoller
  • Constructor Details

  • Method Details

    • poll

      public void poll(int maxJobsToActivate, Consumer<ActivatedJob> jobConsumer, IntConsumer doneCallback, Consumer<Throwable> errorCallback, BooleanSupplier openSupplier)
      Poll for available jobs. Jobs returned by zeebe are activated.
      Specified by:
      poll in interface JobPoller
      Parameters:
      maxJobsToActivate - maximum number of jobs to activate
      jobConsumer - consumes each activated job individually
      doneCallback - consumes the number of jobs activated
      errorCallback - consumes thrown error
      openSupplier - supplies whether the consumer is open