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 Summary
Modifier and TypeMethodDescriptioncreateInterceptSendToEndpoint(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).
-
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 contextendpoint- the endpoint to interceptskip- whether to skip sending to the original endpointonWhen- optional predicate to trigger this interceptorbefore- the processor to execute before interceptingafter- the processor to execute after intercepted- Returns:
- the endpoint with intercepting behaviour
-