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 intprotected intprotected intFields inherited from class org.flowable.common.engine.impl.interceptor.AbstractCommandInterceptor
next -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Texecute(CommandConfig config, Command<T> command, CommandExecutor commandExecutor) protected booleanisTransactionRetryException(Throwable exception) protected voidwaitBeforeRetry(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
-