public static interface JobWorkerBuilderStep1.JobWorkerBuilderStep2
Modifier and Type | Method and Description |
---|---|
JobWorkerBuilderStep1.JobWorkerBuilderStep3 |
handler(JobHandler handler)
Set the handler to process the jobs.
|
JobWorkerBuilderStep1.JobWorkerBuilderStep3 handler(JobHandler handler)
Example JobHandler implementation:
public class PaymentHandler implements JobHandler { @Override public void handle(JobClient client, JobEvent jobEvent) { String json = jobEvent.getPayload(); // modify payload client .newCompleteCommand() .event(jobEvent) .payload(json) .send(); } };The handler must be thread-safe.
handler
- the handle to process the jobsCopyright © 2017–2018 camunda services GmbH. All rights reserved.