Interface PooledExchange

All Superinterfaces:
Exchange, VariableAware

public interface PooledExchange extends Exchange
Pooled Exchange which contains the methods and APIs that are not intended for Camel end users but used internally by Camel for optimizing memory footprint by reusing exchanges created by Consumers via ExchangeFactory.
  • Method Details

    • onDone

      void onDone(PooledExchange.OnDoneTask task)
      Registers a task to run when this exchange is done.

      Important: This API is NOT intended for Camel end users, but used internally by Camel itself.

    • done

      void done()
      When the exchange is done being used.

      Important: This API is NOT intended for Camel end users, but used internally by Camel itself.

    • reset

      @Deprecated void reset(long created)
      Deprecated.
      Resets the exchange for reuse with the given created timestamp;

      Important: This API is NOT intended for Camel end users, but used internally by Camel itself.

    • setAutoRelease

      void setAutoRelease(boolean autoRelease)
      Whether this exchange was created to auto release when its unit of work is done

      Important: This API is NOT intended for Camel end users, but used internally by Camel itself.

    • isAutoRelease

      boolean isAutoRelease()
      Whether this exchange was created to auto release when its unit of work is done

      Important: This API is NOT intended for Camel end users, but used internally by Camel itself.