Interface InterceptEndpointFactory


public interface InterceptEndpointFactory
Factory for creating an InterceptSendToEndpoint that intercepts messages sent to an Endpoint.

This backs the interceptSendToEndpoint EIP: the created endpoint detours the exchange through optional before/after processors and may skip sending to the original endpoint. Used internally when a route configures send interception.

Since:
3.7
See Also:
  • Method Details

    • createInterceptSendToEndpoint

      InterceptSendToEndpoint createInterceptSendToEndpoint(CamelContext camelContext, Endpoint endpoint, boolean skip, @Nullable Predicate onWhen, @Nullable Processor before, @Nullable Processor after)
      Creates an endpoint when intercepting sending to an endpoint (detour).
      Parameters:
      camelContext - the camel context
      endpoint - the endpoint to intercept
      skip - whether to skip sending to the original endpoint
      onWhen - optional predicate to trigger this interceptor
      before - the processor to execute before intercepting
      after - the processor to execute after intercepted
      Returns:
      the endpoint with intercepting behaviour