org.apache.camel.spring.spi
Class TransactionErrorHandlerBuilder

java.lang.Object
  extended by org.apache.camel.builder.ErrorHandlerBuilderSupport
      extended by org.apache.camel.spring.spi.TransactionErrorHandlerBuilder
All Implemented Interfaces:
Cloneable, ErrorHandlerBuilder, InitializingBean

public class TransactionErrorHandlerBuilder
extends ErrorHandlerBuilderSupport
implements Cloneable, InitializingBean

An error handler which will roll the exception back if there is an error rather than using the dead letter channel and retry logic. A delay is also used after a rollback

Version:
$Revision: 713123 $

Constructor Summary
TransactionErrorHandlerBuilder()
           
 
Method Summary
 void afterPropertiesSet()
           
 ErrorHandlerBuilder copy()
           
 Processor createErrorHandler(RouteContext routeContext, Processor processor)
           
 TransactionErrorHandlerBuilder delay(long delay)
           
 DelayPolicy getDelayPolicy()
           
 TransactionTemplate getTransactionTemplate()
           
 void setDelayPolicy(DelayPolicy delayPolicy)
           
 void setTransactionTemplate(TransactionTemplate transactionTemplate)
           
 
Methods inherited from class org.apache.camel.builder.ErrorHandlerBuilderSupport
addErrorHandlers, configure, getExceptions, setErrorHandlers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionErrorHandlerBuilder

public TransactionErrorHandlerBuilder()
Method Detail

getTransactionTemplate

public TransactionTemplate getTransactionTemplate()

setTransactionTemplate

public void setTransactionTemplate(TransactionTemplate transactionTemplate)

getDelayPolicy

public DelayPolicy getDelayPolicy()

setDelayPolicy

public void setDelayPolicy(DelayPolicy delayPolicy)

copy

public ErrorHandlerBuilder copy()
Specified by:
copy in interface ErrorHandlerBuilder

createErrorHandler

public Processor createErrorHandler(RouteContext routeContext,
                                    Processor processor)
                             throws Exception
Specified by:
createErrorHandler in interface ErrorHandlerBuilder
Throws:
Exception

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

delay

public TransactionErrorHandlerBuilder delay(long delay)


Copyright © 2009 Apache Software Foundation. All Rights Reserved.