Class JobActivationRequest
java.lang.Object
io.camunda.zeebe.gateway.protocol.rest.JobActivationRequest
@Generated(value="org.openapitools.codegen.languages.SpringCodegen",
date="2024-10-11T17:26:39.504605721Z[GMT]",
comments="Generator version: 7.8.0")
public class JobActivationRequest
extends Object
JobActivationRequest
-
Constructor Summary
ConstructorsConstructorDescriptionJobActivationRequest(String type, Long timeout, Integer maxJobsToActivate) Constructor with only required parameters -
Method Summary
Modifier and TypeMethodDescriptionaddFetchVariableItem(String fetchVariableItem) addTenantIdsItem(String tenantIdsItem) booleanfetchVariable(List<String> fetchVariable) a list of variables to fetch as the job variables; if empty, all visible variables at the time of activation for the scope of the job will be returned@NotNull Integerthe maximum jobs to activate by this requestThe request will be completed when at least one job is activated or after the requestTimeout (in ms).a list of IDs of tenants for which to activate jobs@NotNull Longa job returned after this call will not be activated by another call until the timeout (in ms) has been reached@NotNull StringgetType()the job type, as defined in the BPMN process (e.g.the name of the worker activating the jobs, mostly used for logging purposesinthashCode()maxJobsToActivate(Integer maxJobsToActivate) requestTimeout(Long requestTimeout) voidsetFetchVariable(List<String> fetchVariable) voidsetMaxJobsToActivate(Integer maxJobsToActivate) voidsetRequestTimeout(Long requestTimeout) voidsetTenantIds(List<String> tenantIds) voidsetTimeout(Long timeout) voidvoidtoString()
-
Constructor Details
-
JobActivationRequest
public JobActivationRequest() -
JobActivationRequest
Constructor with only required parameters
-
-
Method Details
-
type
-
getType
the job type, as defined in the BPMN process (e.g. invalid input: '<'zeebe:taskDefinition type=\"payment-service\" />)- Returns:
- type
-
setType
-
worker
-
getWorker
the name of the worker activating the jobs, mostly used for logging purposes- Returns:
- worker
-
setWorker
-
timeout
-
getTimeout
a job returned after this call will not be activated by another call until the timeout (in ms) has been reached- Returns:
- timeout
-
setTimeout
-
maxJobsToActivate
-
getMaxJobsToActivate
the maximum jobs to activate by this request- Returns:
- maxJobsToActivate
-
setMaxJobsToActivate
-
fetchVariable
-
addFetchVariableItem
-
getFetchVariable
a list of variables to fetch as the job variables; if empty, all visible variables at the time of activation for the scope of the job will be returned- Returns:
- fetchVariable
-
setFetchVariable
-
requestTimeout
-
getRequestTimeout
The request will be completed when at least one job is activated or after the requestTimeout (in ms). If the requestTimeout = 0, a default timeout is used. If the requestTimeout invalid input: '<' 0, long polling is disabled and the request is completed immediately, even when no job is activated.- Returns:
- requestTimeout
-
setRequestTimeout
-
tenantIds
-
addTenantIdsItem
-
getTenantIds
a list of IDs of tenants for which to activate jobs- Returns:
- tenantIds
-
setTenantIds
-
equals
-
hashCode
public int hashCode() -
toString
-