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: 747759 $
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getStatus, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, notStarting, removeChildService, start, stop |
TransactionInterceptor
public TransactionInterceptor(TransactionTemplate transactionTemplate)
TransactionInterceptor
public TransactionInterceptor(Processor processor,
TransactionTemplate transactionTemplate)
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.
getDelayPolicy
public DelayPolicy getDelayPolicy()
setDelayPolicy
public void setDelayPolicy(DelayPolicy delayPolicy)
propagationBehaviorToString
protected String propagationBehaviorToString(int propagationBehavior)
Copyright © 2009 Apache Software Foundation. All Rights Reserved.