Class RedeliveryErrorHandler.SimpleTask
java.lang.Object
org.apache.camel.processor.errorhandler.RedeliveryErrorHandler.SimpleTask
- All Implemented Interfaces:
Runnable,org.apache.camel.AsyncCallback,PooledExchangeTask
- Enclosing class:
RedeliveryErrorHandler
protected class RedeliveryErrorHandler.SimpleTask
extends Object
implements PooledExchangeTask, Runnable, org.apache.camel.AsyncCallback
Simple task to perform calling the processor with no redelivery support
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddone(boolean doneSync) protected voidprotected voidGives an optional configured OnExceptionOccurred processor a chance to process just after an exception was thrown while processing the Exchange.voidprepare(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback) Prepares the task for the given exchange and its callbackprotected voidprepareExchangeAfterFailure(org.apache.camel.Exchange exchange) voidreset()Resets the task after its done and can be reused for another exchange.voidrun()Processing logic.toString()
-
Constructor Details
-
SimpleTask
public SimpleTask()
-
-
Method Details
-
prepare
public void prepare(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback) Description copied from interface:PooledExchangeTaskPrepares the task for the given exchange and its callback- Specified by:
preparein interfacePooledExchangeTask- Parameters:
exchange- the exchangecallback- the callback
-
toString
-
reset
public void reset()Description copied from interface:PooledExchangeTaskResets the task after its done and can be reused for another exchange.- Specified by:
resetin interfacePooledExchangeTask
-
done
public void done(boolean doneSync) - Specified by:
donein interfaceorg.apache.camel.AsyncCallback
-
run
public void run()Processing logic. -
handleException
protected void handleException() -
onExceptionOccurred
protected void onExceptionOccurred()Gives an optional configured OnExceptionOccurred processor a chance to process just after an exception was thrown while processing the Exchange. This allows to execute the processor at the same time the exception was thrown. -
prepareExchangeAfterFailure
protected void prepareExchangeAfterFailure(org.apache.camel.Exchange exchange)
-