org.apache.camel.spring.spi
Class TransactionInterceptor
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.processor.DelegateProcessor
org.apache.camel.spring.spi.TransactionInterceptor
- All Implemented Interfaces:
- Processor, Service
public class TransactionInterceptor
- extends DelegateProcessor
The Transactional Client
EIP pattern.
- Version:
- $Revision: 772869 $
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
TransactionInterceptor
public TransactionInterceptor(TransactionTemplate transactionTemplate)
TransactionInterceptor
public TransactionInterceptor(Processor processor,
TransactionTemplate transactionTemplate)
TransactionInterceptor
public TransactionInterceptor(Processor processor,
TransactionTemplate transactionTemplate,
RedeliveryPolicy redeliveryPolicy)
- Deprecated. use DelayPolicy. Will be removed in Camel 2.0
TransactionInterceptor
public TransactionInterceptor(Processor processor,
TransactionTemplate transactionTemplate,
DelayPolicy delayPolicy)
toString
public String toString()
- Overrides:
toString
in class DelegateProcessor
process
public void process(Exchange exchange)
- Specified by:
process
in interface Processor
- Overrides:
process
in class DelegateProcessor
delayBeforeRedelivery
protected void delayBeforeRedelivery()
- Sleeps before the transaction is set as rollback and the caused exception is rethrown to let the
Spring TransactionManager handle the rollback.
getRedeliveryPolicy
public RedeliveryPolicy getRedeliveryPolicy()
- Deprecated. use DelayPolicy. Will be removed in Camel 2.0
setRedeliveryPolicy
public void setRedeliveryPolicy(RedeliveryPolicy redeliveryPolicy)
- Deprecated. use DelayPolicy. Will be removed in Camel 2.0
getDelayPolicy
public DelayPolicy getDelayPolicy()
setDelayPolicy
public void setDelayPolicy(DelayPolicy delayPolicy)
propagationBehaviorToString
protected String propagationBehaviorToString(int propagationBehavior)
Apache CAMEL