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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    done(boolean doneSync)
     
    protected void
     
    protected void
    Gives an optional configured OnExceptionOccurred processor a chance to process just after an exception was thrown while processing the Exchange.
    void
    prepare(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
    Prepares the task for the given exchange and its callback
    protected void
    prepareExchangeAfterFailure(org.apache.camel.Exchange exchange)
     
    void
    Resets the task after its done and can be reused for another exchange.
    void
    run()
    Processing logic.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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: PooledExchangeTask
      Prepares the task for the given exchange and its callback
      Specified by:
      prepare in interface PooledExchangeTask
      Parameters:
      exchange - the exchange
      callback - the callback
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • reset

      public void reset()
      Description copied from interface: PooledExchangeTask
      Resets the task after its done and can be reused for another exchange.
      Specified by:
      reset in interface PooledExchangeTask
    • done

      public void done(boolean doneSync)
      Specified by:
      done in interface org.apache.camel.AsyncCallback
    • run

      public void run()
      Processing logic.
      Specified by:
      run in interface org.apache.camel.AsyncCallback
      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)