@Documented @Target(value=TYPE) @Retention(value=RUNTIME) @Import(value=PostProcessorConfiguration.class) public @interface EnableExternalTaskClient
Annotation to bootstrap the External Task Client
Heads-up:
String
, the string $null$
is reserved and used as default value
Long
, the value Long.MIN_VALUE
is reserved and used as
default value
Integer
, the value Integer.MIN_VALUE
is reserved and
used as default valueModifier and Type | Fields and Description |
---|---|
static int |
INT_NULL_VALUE |
static long |
LONG_NULL_VALUE |
static String |
STRING_NULL_VALUE |
Modifier and Type | Optional Element and Description |
---|---|
long |
asyncResponseTimeout
Asynchronous response (long polling) is enabled if a timeout is given.
|
String |
baseUrl
Base url of the Camunda Runtime Platform REST API.
|
String |
dateFormat
Specifies the date format to de-/serialize date variables.
|
String |
defaultSerializationFormat
Specifies the serialization format that is used to serialize objects when no specific
format is requested.
|
boolean |
disableAutoFetching
Disables immediate fetching for external tasks after bootstrapping the client.
|
boolean |
disableBackoffStrategy
Disables the client-side backoff strategy.
|
long |
lockDuration |
int |
maxTasks
Specifies the maximum amount of tasks that can be fetched within one request.
|
boolean |
usePriority
Specifies whether tasks should be fetched based on their priority or arbitrarily.
|
String |
value
Base url of the Camunda Runtime Platform REST API.
|
String |
workerId
A custom worker id the Workflow Engine is aware of.
|
public static final String STRING_NULL_VALUE
public abstract int maxTasks
public abstract String workerId
If 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).
public abstract boolean usePriority
true
.public abstract long asyncResponseTimeout
public abstract boolean disableAutoFetching
ExternalTaskClient.start()
must be called.public abstract boolean disableBackoffStrategy
true
,
a BackoffStrategy
bean 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()
.
public abstract long lockDuration
public abstract String dateFormat
yyyy-MM-dd'T'HH:mm:ss.SSSZ
public abstract String defaultSerializationFormat
Copyright © 2022. All rights reserved.