Annotation Type EnableExternalTaskClient
-
@Documented @Target(TYPE) @Retention(RUNTIME) @Import(PostProcessorConfiguration.class) public @interface EnableExternalTaskClient
Annotation to bootstrap the External Task Client
Heads-up:
- for attributes of type
String, the string $null$ is reserved and used as default value - for attributes of type
Long, the valueLong.MIN_VALUEis reserved and used as default value - for attributes of type
Integer, the valueInteger.MIN_VALUEis reserved and used as default value
- for attributes of type
-
-
Field Summary
Fields Modifier and Type Fields Description static intINT_NULL_VALUEstatic longLONG_NULL_VALUEstatic java.lang.StringSTRING_NULL_VALUE
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description longasyncResponseTimeoutAsynchronous response (long polling) is enabled if a timeout is given.java.lang.StringbaseUrlBase url of the Camunda Runtime Platform REST API.java.lang.StringdateFormatSpecifies the date format to de-/serialize date variables.java.lang.StringdefaultSerializationFormatSpecifies the serialization format that is used to serialize objects when no specific format is requested.booleandisableAutoFetchingDisables immediate fetching for external tasks after bootstrapping the client.booleandisableBackoffStrategyDisables the client-side backoff strategy.longlockDurationintmaxTasksSpecifies the maximum amount of tasks that can be fetched within one request.booleanusePrioritySpecifies whether tasks should be fetched based on their priority or arbitrarily.java.lang.StringvalueBase url of the Camunda Runtime Platform REST API.java.lang.StringworkerIdA custom worker id the Workflow Engine is aware of.
-
-
-
Element Detail
-
value
@AliasFor("baseUrl") java.lang.String valueBase url of the Camunda Runtime Platform REST API. This information is mandatory. Alias ofbaseUrl().- Returns:
- baseUrl of the Camunda Runtime Platform REST API
- Default:
- "$null$"
-
-
-
baseUrl
@AliasFor("value") java.lang.String baseUrlBase url of the Camunda Runtime Platform REST API. This information is mandatory. Alias ofvalue().- Returns:
- baseUrl of the Camunda Runtime Platform REST API
- Default:
- "$null$"
-
-
-
workerId
java.lang.String workerId
A custom worker id the Workflow Engine is aware of. This information is optional. Note: make sure to choose a unique worker idIf not given or null, a worker id is generated automatically which consists of the hostname as well as a random and unique 128 bit string (UUID).
- Returns:
- workerId the Workflow Engine is aware of
- Default:
- "$null$"
-
-
-
asyncResponseTimeout
long asyncResponseTimeout
Asynchronous response (long polling) is enabled if a timeout is given. Specifies the maximum waiting time for the response of fetched and locked external tasks. The response is performed immediately, if external tasks are available in the moment of the request. This information is optional. Unless a timeout is given, fetch and lock responses are synchronous.- Returns:
- asyncResponseTimeout of fetched and locked external tasks in milliseconds
- Default:
- -9223372036854775808L
-
-
-
disableAutoFetching
boolean disableAutoFetching
Disables immediate fetching for external tasks after bootstrapping the client. To start fetchingExternalTaskClient.start()must be called.- Returns:
- disableAutoFetching when after bootstrapping the client
- Default:
- false
-
-
-
disableBackoffStrategy
boolean disableBackoffStrategy
Disables the client-side backoff strategy. When set totrue, aBackoffStrategybean is ignored.NOTE: Please bear in mind that disabling the client-side backoff can lead to heavy load situations on engine side. To avoid this, please specify an appropriate
asyncResponseTimeout().- Returns:
- disableBackoffStrategy
- Default:
- false
-
-
-
defaultSerializationFormat
java.lang.String defaultSerializationFormat
Specifies the serialization format that is used to serialize objects when no specific format is requested. This option defaults to application/json.- Returns:
- defaultSerializationFormat serialization format to be used
- Default:
- "$null$"
-
-