Class RedeliveryErrorHandler.SimpleTask

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    RedeliveryErrorHandler

    protected class RedeliveryErrorHandler.SimpleTask
    extends Object
    implements Runnable
    Simple task to perform calling the processor with no redelivery support
    • Constructor Detail

      • SimpleTask

        public SimpleTask​(org.apache.camel.Exchange exchange,
                          org.apache.camel.AsyncCallback callback)
    • Method Detail

      • run

        public void run()
        Processing logic.
        Specified by:
        run in interface Runnable
      • 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)