Class CorrelatingInterceptor

java.lang.Object
io.fluxcapacitor.javaclient.publishing.correlation.CorrelatingInterceptor
All Implemented Interfaces:
DispatchInterceptor

public class CorrelatingInterceptor extends Object implements DispatchInterceptor
  • Constructor Details

    • CorrelatingInterceptor

      public CorrelatingInterceptor()
  • Method Details

    • interceptDispatch

      public Message interceptDispatch(Message message, MessageType messageType)
      Description copied from interface: DispatchInterceptor
      Intercepts the publication of a message. Implementers can use this to modify the contents of a message or block the publication altogether.

      Return null or throw an exception to prevent publication of the message.

      Specified by:
      interceptDispatch in interface DispatchInterceptor