Class ZeebeJobWorkerPropertiesBuilderImpl<B extends AbstractBaseElementBuilder<?,?>>
java.lang.Object
io.camunda.zeebe.model.bpmn.builder.ZeebeJobWorkerPropertiesBuilderImpl<B>
- All Implemented Interfaces:
ZeebeJobWorkerPropertiesBuilder<B>
public class ZeebeJobWorkerPropertiesBuilderImpl<B extends AbstractBaseElementBuilder<?,?>>
extends Object
implements ZeebeJobWorkerPropertiesBuilder<B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionzeebeJobRetries(String retries) Sets a static number of retries for the job.zeebeJobRetriesExpression(String expression) Sets a dynamic number of retries for the job that is retrieved from the given expressionzeebeJobType(String type) Sets a static type for the job.zeebeJobTypeExpression(String expression) Sets a dynamic type for the job that is retrieved from the given expression.zeebeTaskHeader(String key, String value) Adds a custom task header for the job.
-
Constructor Details
-
ZeebeJobWorkerPropertiesBuilderImpl
-
-
Method Details
-
zeebeJobType
Description copied from interface:ZeebeJobWorkerPropertiesBuilderSets a static type for the job.- Specified by:
zeebeJobTypein interfaceZeebeJobWorkerPropertiesBuilder<B extends AbstractBaseElementBuilder<?,?>> - Parameters:
type- the type of the job- Returns:
- the builder instance
-
zeebeJobTypeExpression
Description copied from interface:ZeebeJobWorkerPropertiesBuilderSets a dynamic type for the job that is retrieved from the given expression.- Specified by:
zeebeJobTypeExpressionin interfaceZeebeJobWorkerPropertiesBuilder<B extends AbstractBaseElementBuilder<?,?>> - Parameters:
expression- the expression for the type of the job- Returns:
- the builder instance
-
zeebeJobRetries
Description copied from interface:ZeebeJobWorkerPropertiesBuilderSets a static number of retries for the job.- Specified by:
zeebeJobRetriesin interfaceZeebeJobWorkerPropertiesBuilder<B extends AbstractBaseElementBuilder<?,?>> - Parameters:
retries- the number of job retries- Returns:
- the builder instance
-
zeebeJobRetriesExpression
Description copied from interface:ZeebeJobWorkerPropertiesBuilderSets a dynamic number of retries for the job that is retrieved from the given expression- Specified by:
zeebeJobRetriesExpressionin interfaceZeebeJobWorkerPropertiesBuilder<B extends AbstractBaseElementBuilder<?,?>> - Parameters:
expression- the expression for the number of job retries- Returns:
- the builder instance
-
zeebeTaskHeader
Description copied from interface:ZeebeJobWorkerPropertiesBuilderAdds a custom task header for the job. Can be called multiple times.- Specified by:
zeebeTaskHeaderin interfaceZeebeJobWorkerPropertiesBuilder<B extends AbstractBaseElementBuilder<?,?>> - Parameters:
key- the key of the custom headervalue- the value of the custom header- Returns:
- the builder instance
-