org.camunda.bpm.engine.impl.interceptor
Class JtaRetryInterceptor

java.lang.Object
  extended by org.camunda.bpm.engine.impl.interceptor.CommandInterceptor
      extended by org.camunda.bpm.engine.impl.interceptor.RetryInterceptor
          extended by 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

Field Summary
protected  TransactionManager transactionManager
           
 
Fields inherited from class org.camunda.bpm.engine.impl.interceptor.RetryInterceptor
numOfRetries, waitIncreaseFactor, waitTimeInMs
 
Fields inherited from class org.camunda.bpm.engine.impl.interceptor.CommandInterceptor
next
 
Constructor Summary
JtaRetryInterceptor(TransactionManager transactionManager)
           
 
Method Summary
protected  boolean calledInsideTransaction()
           
<T> T
execute(Command<T> command)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.interceptor.RetryInterceptor
getNumOfRetries, getWaitIncreaseFactor, getWaitTimeInMs, setNumOfRetries, setWaitIncreaseFactor, setWaitTimeInMs, waitBeforeRetry
 
Methods inherited from class org.camunda.bpm.engine.impl.interceptor.CommandInterceptor
getNext, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transactionManager

protected final TransactionManager transactionManager
Constructor Detail

JtaRetryInterceptor

public JtaRetryInterceptor(TransactionManager transactionManager)
Method Detail

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.