org.apache.camel.builder
Class DeadLetterChannelBuilder

java.lang.Object
  extended by org.apache.camel.builder.ErrorHandlerBuilderSupport
      extended by org.apache.camel.builder.DefaultErrorHandlerBuilder
          extended by org.apache.camel.builder.DeadLetterChannelBuilder
All Implemented Interfaces:
ErrorHandlerBuilder

public class DeadLetterChannelBuilder
extends DefaultErrorHandlerBuilder

A builder of a Dead Letter Channel

Version:

Field Summary
 
Fields inherited from class org.apache.camel.builder.DefaultErrorHandlerBuilder
asyncDelayedRedelivery, deadLetter, deadLetterUri, exceptionPolicyStrategy, failureProcessor, handledPolicy, logger, onRedelivery, redeliveryPolicy, retryWhile, retryWhileRef, useOriginalMessage
 
Constructor Summary
DeadLetterChannelBuilder()
           
DeadLetterChannelBuilder(Endpoint deadLetter)
           
DeadLetterChannelBuilder(String uri)
           
 
Method Summary
 Processor createErrorHandler(RouteContext routeContext, Processor processor)
          Creates the error handler interceptor
protected  Predicate createHandledPolicy()
           
protected  CamelLogger createLogger()
           
protected  RedeliveryPolicy createRedeliveryPolicy()
           
 Processor getFailureProcessor()
           
 boolean supportTransacted()
          Whether this error handler supports transacted exchanges.
 String toString()
           
protected  void validateDeadLetterUri(RouteContext routeContext)
           
 
Methods inherited from class org.apache.camel.builder.DefaultErrorHandlerBuilder
asyncDelayedRedelivery, backOffMultiplier, collisionAvoidancePercent, delayPattern, disableRedelivery, exceptionPolicyStrategy, getDeadLetter, getDeadLetterUri, getExceptionPolicyStrategy, getHandledPolicy, getLogger, getOnRedelivery, getRedeliveryPolicy, getRetryWhile, getRetryWhilePolicy, getRetryWhileRef, handled, handled, handled, isAsyncDelayedRedelivery, isUseOriginalMessage, log, log, log, logExhausted, logger, loggingLevel, logHandled, logRetryStackTrace, logStackTrace, maximumRedeliveries, maximumRedeliveryDelay, onRedelivery, redeliverDelay, redeliveryDelay, retriesExhaustedLogLevel, retryAttemptedLogLevel, retryWhile, setAsyncDelayedRedelivery, setDeadLetter, setDeadLetterUri, setExceptionPolicyStrategy, setFailureProcessor, setHandled, setHandledPolicy, setLogger, setOnRedelivery, setRedeliveryPolicy, setRetryWhile, setRetryWhileRef, setUseOriginalMessage, useCollisionAvoidance, useExponentialBackOff, useOriginalMessage
 
Methods inherited from class org.apache.camel.builder.ErrorHandlerBuilderSupport
addErrorHandlers, configure, getErrorHandlers, setErrorHandlers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeadLetterChannelBuilder

public DeadLetterChannelBuilder()

DeadLetterChannelBuilder

public DeadLetterChannelBuilder(Endpoint deadLetter)

DeadLetterChannelBuilder

public DeadLetterChannelBuilder(String uri)
Method Detail

createErrorHandler

public Processor createErrorHandler(RouteContext routeContext,
                                    Processor processor)
                             throws Exception
Description copied from interface: ErrorHandlerBuilder
Creates the error handler interceptor

Specified by:
createErrorHandler in interface ErrorHandlerBuilder
Overrides:
createErrorHandler in class DefaultErrorHandlerBuilder
Parameters:
routeContext - the route context
processor - the outer processor
Returns:
the error handler
Throws:
Exception - is thrown if the error handler could not be created

supportTransacted

public boolean supportTransacted()
Description copied from interface: ErrorHandlerBuilder
Whether this error handler supports transacted exchanges.

Specified by:
supportTransacted in interface ErrorHandlerBuilder
Overrides:
supportTransacted in class DefaultErrorHandlerBuilder

getFailureProcessor

public Processor getFailureProcessor()
Overrides:
getFailureProcessor in class DefaultErrorHandlerBuilder

validateDeadLetterUri

protected void validateDeadLetterUri(RouteContext routeContext)

createHandledPolicy

protected Predicate createHandledPolicy()
Overrides:
createHandledPolicy in class DefaultErrorHandlerBuilder

createRedeliveryPolicy

protected RedeliveryPolicy createRedeliveryPolicy()
Overrides:
createRedeliveryPolicy in class DefaultErrorHandlerBuilder

createLogger

protected CamelLogger createLogger()
Overrides:
createLogger in class DefaultErrorHandlerBuilder

toString

public String toString()
Overrides:
toString in class DefaultErrorHandlerBuilder


Apache CAMEL