Class JtaRetryInterceptor
- java.lang.Object
-
- org.activiti.engine.impl.interceptor.AbstractCommandInterceptor
-
- org.activiti.engine.impl.interceptor.RetryInterceptor
-
- org.activiti.engine.impl.interceptor.JtaRetryInterceptor
-
- All Implemented Interfaces:
CommandInterceptor
public class JtaRetryInterceptor extends RetryInterceptor
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 ActivitiOptimisticLockingException.
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.transaction.TransactionManagertransactionManager-
Fields inherited from class org.activiti.engine.impl.interceptor.RetryInterceptor
numOfRetries, waitIncreaseFactor, waitTimeInMs
-
Fields inherited from class org.activiti.engine.impl.interceptor.AbstractCommandInterceptor
next
-
-
Constructor Summary
Constructors Constructor Description JtaRetryInterceptor(javax.transaction.TransactionManager transactionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancalledInsideTransaction()<T> Texecute(CommandConfig config, Command<T> command)-
Methods inherited from class org.activiti.engine.impl.interceptor.RetryInterceptor
getNumOfRetries, getWaitIncreaseFactor, getWaitTimeInMs, setNumOfRetries, setWaitIncreaseFactor, setWaitTimeInMs, waitBeforeRetry
-
Methods inherited from class org.activiti.engine.impl.interceptor.AbstractCommandInterceptor
getNext, setNext
-
-
-
-
Method Detail
-
execute
public <T> T execute(CommandConfig config, Command<T> command)
- Specified by:
executein interfaceCommandInterceptor- Overrides:
executein classRetryInterceptor
-
calledInsideTransaction
protected boolean calledInsideTransaction()
-
-