Class CrDbRetryInterceptor
- java.lang.Object
-
- org.flowable.common.engine.impl.interceptor.AbstractCommandInterceptor
-
- org.flowable.common.engine.impl.interceptor.CrDbRetryInterceptor
-
- All Implemented Interfaces:
CommandInterceptor
public class CrDbRetryInterceptor extends AbstractCommandInterceptor
Inspired byRetryInterceptor, 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
Fields Modifier and Type Field Description protected intnrRetriesprotected intwaitTimeprotected intwaitTimeIncrease-
Fields inherited from class org.flowable.common.engine.impl.interceptor.AbstractCommandInterceptor
next
-
-
Constructor Summary
Constructors Constructor Description CrDbRetryInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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
-
-
-
-
Method Detail
-
execute
public <T> T execute(CommandConfig config, Command<T> command, CommandExecutor commandExecutor)
-
waitBeforeRetry
protected void waitBeforeRetry(long waitTime)
-
isTransactionRetryException
protected boolean isTransactionRetryException(Throwable exception)
-
-