Class JobHandlerInvokingSpringBeans
java.lang.Object
io.camunda.zeebe.spring.client.jobhandling.JobHandlerInvokingSpringBeans
- All Implemented Interfaces:
io.camunda.zeebe.client.api.worker.JobHandler
public class JobHandlerInvokingSpringBeans
extends Object
implements io.camunda.zeebe.client.api.worker.JobHandler
Zeebe JobHandler that invokes a Spring bean
-
Constructor Summary
ConstructorsConstructorDescriptionJobHandlerInvokingSpringBeans(ZeebeWorkerValue workerValue, CommandExceptionHandlingStrategy commandExceptionHandlingStrategy, io.camunda.zeebe.client.api.JsonMapper jsonMapper, MetricsRecorder metricsRecorder) -
Method Summary
Modifier and TypeMethodDescriptionstatic io.camunda.zeebe.client.api.command.FinalCommandStepcreateCompleteCommand(io.camunda.zeebe.client.api.worker.JobClient jobClient, io.camunda.zeebe.client.api.response.ActivatedJob job, Object result) voidhandle(io.camunda.zeebe.client.api.worker.JobClient jobClient, io.camunda.zeebe.client.api.response.ActivatedJob job)
-
Constructor Details
-
JobHandlerInvokingSpringBeans
public JobHandlerInvokingSpringBeans(ZeebeWorkerValue workerValue, CommandExceptionHandlingStrategy commandExceptionHandlingStrategy, io.camunda.zeebe.client.api.JsonMapper jsonMapper, MetricsRecorder metricsRecorder)
-
-
Method Details
-
handle
public void handle(io.camunda.zeebe.client.api.worker.JobClient jobClient, io.camunda.zeebe.client.api.response.ActivatedJob job) throws Exception - Specified by:
handlein interfaceio.camunda.zeebe.client.api.worker.JobHandler- Throws:
Exception
-
createCompleteCommand
public static io.camunda.zeebe.client.api.command.FinalCommandStep createCompleteCommand(io.camunda.zeebe.client.api.worker.JobClient jobClient, io.camunda.zeebe.client.api.response.ActivatedJob job, Object result)
-