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, 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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionErrorHandlerBuilder
public TransactionErrorHandlerBuilder()
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.