org.apache.camel.spring.spi
Class TransactionErrorHandlerBuilder
java.lang.Object
org.apache.camel.builder.ErrorHandlerBuilderSupport
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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionErrorHandlerBuilder
public TransactionErrorHandlerBuilder()
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.