org.apache.camel.spring.spi
Class TransactionInterceptor

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.processor.DelegateProcessor
          extended by org.apache.camel.spring.spi.TransactionInterceptor
All Implemented Interfaces:
Processor, Service

public class TransactionInterceptor
extends DelegateProcessor

The Transactional Client EIP pattern.

Version:
$Revision: 772869 $

Field Summary
 
Fields inherited from class org.apache.camel.processor.DelegateProcessor
processor
 
Constructor Summary
TransactionInterceptor(Processor processor, TransactionTemplate transactionTemplate)
           
TransactionInterceptor(Processor processor, TransactionTemplate transactionTemplate, DelayPolicy delayPolicy)
           
TransactionInterceptor(Processor processor, TransactionTemplate transactionTemplate, RedeliveryPolicy redeliveryPolicy)
          Deprecated. use DelayPolicy. Will be removed in Camel 2.0
TransactionInterceptor(TransactionTemplate transactionTemplate)
           
 
Method Summary
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.
 DelayPolicy getDelayPolicy()
           
 RedeliveryPolicy getRedeliveryPolicy()
          Deprecated. use DelayPolicy. Will be removed in Camel 2.0
 void process(Exchange exchange)
           
protected  String propagationBehaviorToString(int propagationBehavior)
           
 void setDelayPolicy(DelayPolicy delayPolicy)
           
 void setRedeliveryPolicy(RedeliveryPolicy redeliveryPolicy)
          Deprecated. use DelayPolicy. Will be removed in Camel 2.0
 String toString()
           
 
Methods inherited from class org.apache.camel.processor.DelegateProcessor
doStart, doStop, getProcessor, proceed, processNext, setProcessor
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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