Interface InterceptSendToEndpoint

All Superinterfaces:
AutoCloseable, ComponentAware, Endpoint, IsSingleton, Service

public interface InterceptSendToEndpoint extends Endpoint
An Endpoint wrapper that, when sent to, detours the exchange: before, send to the original endpoint (which can be skipped), then after (optional).

This is the endpoint created by InterceptEndpointFactory to implement the interceptSendToEndpoint EIP. The before/after Processors and the optional Predicate guard are configurable, as is whether the original send is skipped.

See Also:
  • Method Details

    • getOriginalEndpoint

      Endpoint getOriginalEndpoint()
      The original endpoint which was intercepted.
    • getOnWhen

      @Nullable Predicate getOnWhen()
      Optional predicate that must match to trigger this interceptor.
    • setOnWhen

      void setOnWhen(@Nullable Predicate onWhen)
      Optional predicate that must match to trigger this interceptor.
    • getBefore

      @Nullable Processor getBefore()
      The processor for routing in a detour before sending to the original endpoint.
    • setBefore

      void setBefore(@Nullable Processor before)
      Sets the processor for routing in a detour before sending to the original endpoint.
    • getAfter

      @Nullable Processor getAfter()
      The processor (optional) for routing after sending to the original endpoint.
    • setAfter

      void setAfter(@Nullable Processor after)
      Sets the processor (optional) for routing after sending to the original endpoint.
    • isSkip

      boolean isSkip()
      Whether to skip sending to the original endpoint.