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, org.springframework.beans.factory.InitializingBean

public class TransactionErrorHandlerBuilder
extends ErrorHandlerBuilderSupport
implements Cloneable, org.springframework.beans.factory.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: 1.1 $

Constructor Summary
TransactionErrorHandlerBuilder()
           
 
Method Summary
 void afterPropertiesSet()
           
 TransactionErrorHandlerBuilder backOffMultiplier(double backOffMultiplier)
           
 TransactionErrorHandlerBuilder collisionAvoidancePercent(short collisionAvoidancePercent)
           
 ErrorHandlerBuilder copy()
           
 Processor createErrorHandler(RouteContext routeContext, Processor processor)
           
 RedeliveryPolicy getRedeliveryPolicy()
           
 org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
           
 TransactionErrorHandlerBuilder initialRedeliveryDelay(long initialRedeliveryDelay)
           
 TransactionErrorHandlerBuilder maximumRedeliveries(int maximumRedeliveries)
           
 TransactionErrorHandlerBuilder maximumRedeliveryDelay(long maximumRedeliveryDelay)
           
 void setRedeliveryPolicy(RedeliveryPolicy redeliveryPolicy)
           
 void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transactionTemplate)
           
 TransactionErrorHandlerBuilder useCollisionAvoidance()
           
 TransactionErrorHandlerBuilder useExponentialBackOff()
           
 
Methods inherited from class org.apache.camel.builder.ErrorHandlerBuilderSupport
addErrorHandlers, configure, getExceptions
 
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 org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()

setTransactionTemplate

public void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transactionTemplate)

getRedeliveryPolicy

public RedeliveryPolicy getRedeliveryPolicy()

setRedeliveryPolicy

public void setRedeliveryPolicy(RedeliveryPolicy redeliveryPolicy)

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 org.springframework.beans.factory.InitializingBean
Throws:
Exception

backOffMultiplier

public TransactionErrorHandlerBuilder backOffMultiplier(double backOffMultiplier)

collisionAvoidancePercent

public TransactionErrorHandlerBuilder collisionAvoidancePercent(short collisionAvoidancePercent)

initialRedeliveryDelay

public TransactionErrorHandlerBuilder initialRedeliveryDelay(long initialRedeliveryDelay)

maximumRedeliveries

public TransactionErrorHandlerBuilder maximumRedeliveries(int maximumRedeliveries)

maximumRedeliveryDelay

public TransactionErrorHandlerBuilder maximumRedeliveryDelay(long maximumRedeliveryDelay)

useCollisionAvoidance

public TransactionErrorHandlerBuilder useCollisionAvoidance()

useExponentialBackOff

public TransactionErrorHandlerBuilder useExponentialBackOff()


Copyright © 2008 Apache Software Foundation. All Rights Reserved.