Class JtaRetryInterceptor
java.lang.Object
org.flowable.common.engine.impl.interceptor.AbstractCommandInterceptor
org.flowable.common.engine.impl.interceptor.RetryInterceptor
org.flowable.common.engine.impl.interceptor.JtaRetryInterceptor
- All Implemented Interfaces:
CommandInterceptor
We cannot perform a retry if we are called in an existing transaction. In that case, the transaction will be marked "rollback-only" after the first FlowableOptimisticLockingException.
- Author:
- Daniel Meyer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final jakarta.transaction.TransactionManagerFields inherited from class org.flowable.common.engine.impl.interceptor.RetryInterceptor
numOfRetries, waitIncreaseFactor, waitTimeInMsFields inherited from class org.flowable.common.engine.impl.interceptor.AbstractCommandInterceptor
next -
Constructor Summary
ConstructorsConstructorDescriptionJtaRetryInterceptor(jakarta.transaction.TransactionManager transactionManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean<T> Texecute(CommandConfig config, Command<T> command, CommandExecutor commandExecutor) Methods inherited from class org.flowable.common.engine.impl.interceptor.RetryInterceptor
getNumOfRetries, getWaitIncreaseFactor, getWaitTimeInMs, setNumOfRetries, setWaitIncreaseFactor, setWaitTimeInMs, waitBeforeRetryMethods inherited from class org.flowable.common.engine.impl.interceptor.AbstractCommandInterceptor
getNext, setNext
-
Field Details
-
transactionManager
protected final jakarta.transaction.TransactionManager transactionManager
-
-
Constructor Details
-
JtaRetryInterceptor
public JtaRetryInterceptor(jakarta.transaction.TransactionManager transactionManager)
-
-
Method Details
-
execute
- Specified by:
executein interfaceCommandInterceptor- Overrides:
executein classRetryInterceptor
-
calledInsideTransaction
protected boolean calledInsideTransaction()
-