protected class RedeliveryErrorHandler.RedeliveryState extends Object implements Runnable
Constructor and Description |
---|
RedeliveryState(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
Modifier and Type | Method and Description |
---|---|
protected void |
deliverToFailureProcessor(org.apache.camel.Processor processor,
boolean isDeadLetterChannel,
org.apache.camel.Exchange exchange)
All redelivery attempts failed so move the exchange to the dead letter queue
|
protected void |
deliverToOnRedeliveryProcessor()
Gives an optional configured redelivery processor a chance to process before the Exchange
will be redelivered.
|
protected void |
handleException() |
protected boolean |
isRedeliveryAllowed() |
protected boolean |
isRunAllowed() |
protected void |
onExceptionOccurred()
Gives an optional configured OnExceptionOccurred processor a chance to process just after an exception
was thrown while processing the Exchange.
|
protected void |
prepareExchangeAfterFailure(org.apache.camel.Exchange exchange,
boolean isDeadLetterChannel,
boolean shouldHandle,
boolean shouldContinue) |
protected void |
prepareExchangeForContinue(org.apache.camel.Exchange exchange,
boolean isDeadLetterChannel) |
protected void |
prepareExchangeForRedelivery() |
protected void |
redeliver() |
void |
run()
Redelivery logic.
|
boolean |
sleep()
Method for sleeping during redelivery attempts.
|
String |
toString() |
public RedeliveryState(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
protected boolean isRunAllowed()
protected boolean isRedeliveryAllowed()
protected void redeliver()
protected void prepareExchangeForContinue(org.apache.camel.Exchange exchange, boolean isDeadLetterChannel)
protected void prepareExchangeForRedelivery()
protected void handleException()
protected void onExceptionOccurred()
protected void deliverToOnRedeliveryProcessor()
protected void deliverToFailureProcessor(org.apache.camel.Processor processor, boolean isDeadLetterChannel, org.apache.camel.Exchange exchange)
protected void prepareExchangeAfterFailure(org.apache.camel.Exchange exchange, boolean isDeadLetterChannel, boolean shouldHandle, boolean shouldContinue)
public boolean sleep() throws InterruptedException
InterruptedException
Apache Camel