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: 674383 $

Nested Class Summary
protected static class TransactionInterceptor.RedeliveryData
           
 
Field Summary
static ExchangeProperty<Boolean> TRANSACTED
           
 
Fields inherited from class org.apache.camel.processor.DelegateProcessor
processor
 
Constructor Summary
TransactionInterceptor(Processor processor, org.springframework.transaction.support.TransactionTemplate transactionTemplate)
           
TransactionInterceptor(Processor processor, org.springframework.transaction.support.TransactionTemplate transactionTemplate, RedeliveryPolicy redeliveryPolicy)
           
TransactionInterceptor(org.springframework.transaction.support.TransactionTemplate transactionTemplate)
           
 
Method Summary
 RedeliveryPolicy getRedeliveryPolicy()
           
 void process(Exchange exchange)
           
protected  String propagationBehaviorToString(int propagationBehavior)
           
 void setRedeliveryPolicy(RedeliveryPolicy redeliveryPolicy)
           
 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, 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
 

Field Detail

TRANSACTED

public static final ExchangeProperty<Boolean> TRANSACTED
Constructor Detail

TransactionInterceptor

public TransactionInterceptor(org.springframework.transaction.support.TransactionTemplate transactionTemplate)

TransactionInterceptor

public TransactionInterceptor(Processor processor,
                              org.springframework.transaction.support.TransactionTemplate transactionTemplate)

TransactionInterceptor

public TransactionInterceptor(Processor processor,
                              org.springframework.transaction.support.TransactionTemplate transactionTemplate,
                              RedeliveryPolicy redeliveryPolicy)
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

getRedeliveryPolicy

public RedeliveryPolicy getRedeliveryPolicy()

setRedeliveryPolicy

public void setRedeliveryPolicy(RedeliveryPolicy redeliveryPolicy)

propagationBehaviorToString

protected String propagationBehaviorToString(int propagationBehavior)


Copyright © 2008 Apache Software Foundation. All Rights Reserved.