Interface PooledExchangeTask

All Superinterfaces:
Runnable
All Known Implementing Classes:
RedeliveryErrorHandler.RedeliveryTask, RedeliveryErrorHandler.SimpleTask

public interface PooledExchangeTask extends Runnable
A task that EIPs and internal routing engine uses to store state when processing an Exchange.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    prepare(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
    Prepares the task for the given exchange and its callback
    void
    Resets the task after its done and can be reused for another exchange.

    Methods inherited from interface java.lang.Runnable

    run
  • Method Details

    • prepare

      void prepare(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
      Prepares the task for the given exchange and its callback
      Parameters:
      exchange - the exchange
      callback - the callback
    • reset

      void reset()
      Resets the task after its done and can be reused for another exchange.