Class JobPollerImpl
java.lang.Object
io.camunda.zeebe.client.impl.worker.JobPollerImpl
- All Implemented Interfaces:
JobPoller
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
poll
(int maxJobsToActivate, Consumer<ActivatedJob> jobConsumer, IntConsumer doneCallback, Consumer<Throwable> errorCallback, BooleanSupplier openSupplier) Poll for available jobs.
-
Constructor Details
-
JobPollerImpl
-
-
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 interfaceJobPoller
- Parameters:
maxJobsToActivate
- maximum number of jobs to activatejobConsumer
- consumes each activated job individuallydoneCallback
- consumes the number of jobs activatederrorCallback
- consumes thrown erroropenSupplier
- supplies whether the consumer is open
-