Interface DispatchListener.OnDispatch

All Superinterfaces:
DispatchListener
All Known Implementing Classes:
DispatchLogger
Enclosing interface:
DispatchListener
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static non-sealed interface DispatchListener.OnDispatch extends DispatchListener
  • Method Details

    • onDispatch

      void onDispatch(JmsDispatch dispatch)
      Invoked immediately after JmsDispatchFn.send(JmsDispatch) is called and before any JMS API invocations to construct and send the message.

      This is the first event on the listener. It is very unlikely to be interrupted by an exception unless dispatch is null.