org.camunda.bpm.engine.impl.interceptor
Class JtaRetryInterceptor
java.lang.Object
org.camunda.bpm.engine.impl.interceptor.CommandInterceptor
org.camunda.bpm.engine.impl.interceptor.RetryInterceptor
org.camunda.bpm.engine.impl.interceptor.JtaRetryInterceptor
- All Implemented Interfaces:
- CommandExecutor
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
OptimisticLockingException.
- Author:
- Daniel Meyer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
transactionManager
protected final TransactionManager transactionManager
JtaRetryInterceptor
public JtaRetryInterceptor(TransactionManager transactionManager)
execute
public <T> T execute(Command<T> command)
- Specified by:
execute in interface CommandExecutor- Overrides:
execute in class RetryInterceptor
calledInsideTransaction
protected boolean calledInsideTransaction()
Copyright © 2015 camunda services GmbH. All rights reserved.