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.TransactionManager
Fields inherited from class org.flowable.common.engine.impl.interceptor.RetryInterceptor
numOfRetries, waitIncreaseFactor, waitTimeInMs
Fields 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> T
execute
(CommandConfig config, Command<T> command, CommandExecutor commandExecutor) Methods inherited from class org.flowable.common.engine.impl.interceptor.RetryInterceptor
getNumOfRetries, getWaitIncreaseFactor, getWaitTimeInMs, setNumOfRetries, setWaitIncreaseFactor, setWaitTimeInMs, waitBeforeRetry
Methods 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:
execute
in interfaceCommandInterceptor
- Overrides:
execute
in classRetryInterceptor
-
calledInsideTransaction
protected boolean calledInsideTransaction()
-