Class CrDbRetryInterceptor
java.lang.Object
org.flowable.common.engine.impl.interceptor.AbstractCommandInterceptor
org.flowable.common.engine.impl.interceptor.CrDbRetryInterceptor
- All Implemented Interfaces:
CommandInterceptor
Inspired by
RetryInterceptor
, but adapted for CRDB.
This probably won't work in environments such as Spring if the transaction is externally managed- Author:
- Joram Barrez
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected int
protected int
Fields inherited from class org.flowable.common.engine.impl.interceptor.AbstractCommandInterceptor
next
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
execute
(CommandConfig config, Command<T> command, CommandExecutor commandExecutor) protected boolean
isTransactionRetryException
(Throwable exception) protected void
waitBeforeRetry
(long waitTime) Methods inherited from class org.flowable.common.engine.impl.interceptor.AbstractCommandInterceptor
getNext, setNext
-
Field Details
-
nrRetries
protected int nrRetries -
waitTime
protected int waitTime -
waitTimeIncrease
protected int waitTimeIncrease
-
-
Constructor Details
-
CrDbRetryInterceptor
public CrDbRetryInterceptor()
-
-
Method Details
-
execute
-
waitBeforeRetry
protected void waitBeforeRetry(long waitTime) -
isTransactionRetryException
-