Interface InterceptableProcessor


public interface InterceptableProcessor
Implemented by a Processor to control whether it may be wrapped by an InterceptStrategy.

Most processors are interceptable, but some EIPs (such as try/catch/finally) cannot be intercepted safely; canIntercept() returns false for those so Camel skips wrapping them.

Since:
4.7
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether the processor can be intercepted or not.
  • Method Details

    • canIntercept

      boolean canIntercept()
      Whether the processor can be intercepted or not.
      Returns:
      true to allow intercepting, false to skip.