Package org.apache.camel.model
Class OptimisticLockRetryPolicyDefinition
java.lang.Object
org.apache.camel.model.OptimisticLockRetryPolicyDefinition
To configure optimistic locking
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionEnable exponential backoffexponentialBackOff
(boolean exponentialBackOff) exponentialBackOff
(String exponentialBackOff) maximumRetries
(int maximumRetries) Sets the maximum number of retriesmaximumRetries
(String maximumRetries) maximumRetryDelay
(long maximumRetryDelay) Sets the upper value of retry in millis between retries, when using exponential or random backoffmaximumRetryDelay
(String maximumRetryDelay) Sets the upper value of retry in millis between retries, when using exponential or random backoffrandomBackOff
(boolean randomBackOff) Enables random backoffrandomBackOff
(String randomBackOff) retryDelay
(long retryDelay) Sets the delay in millis between retriesretryDelay
(String retryDelay) Sets the delay in millis between retriesvoid
setExponentialBackOff
(String exponentialBackOff) void
setMaximumRetries
(String maximumRetries) void
setMaximumRetryDelay
(String maximumRetryDelay) void
setRandomBackOff
(String randomBackOff) void
setRetryDelay
(String retryDelay)
-
Constructor Details
-
OptimisticLockRetryPolicyDefinition
public OptimisticLockRetryPolicyDefinition()
-
-
Method Details
-
maximumRetries
Sets the maximum number of retries -
maximumRetries
-
getMaximumRetries
-
setMaximumRetries
-
retryDelay
Sets the delay in millis between retries -
retryDelay
Sets the delay in millis between retries -
getRetryDelay
-
setRetryDelay
-
maximumRetryDelay
Sets the upper value of retry in millis between retries, when using exponential or random backoff -
maximumRetryDelay
Sets the upper value of retry in millis between retries, when using exponential or random backoff -
getMaximumRetryDelay
-
setMaximumRetryDelay
-
exponentialBackOff
Enable exponential backoff -
exponentialBackOff
-
exponentialBackOff
-
getExponentialBackOff
-
setExponentialBackOff
-
randomBackOff
-
randomBackOff
Enables random backoff -
randomBackOff
-
getRandomBackOff
-
setRandomBackOff
-