Package me.ehp246.aufjms.api.dispatch
Interface DispatchListener
- All Known Subinterfaces:
DispatchListener.OnDispatch,DispatchListener.OnException,DispatchListener.PostSend,DispatchListener.PreSend
- All Known Implementing Classes:
DispatchLogger
public sealed interface DispatchListener
permits DispatchListener.OnDispatch, DispatchListener.PreSend, DispatchListener.PostSend, DispatchListener.OnException
Defines life-cycle events supported by
JmsDispatchFn.send(JmsDispatch).
- Since:
- 1.0
- Author:
- Lei Yang
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInvoked immediately after JmsDispatchFn.send(JmsDispatch) is called and before any JMS API invocations to construct and send the message.static interfaceInvoked when an Exception has happened and before it is thrown to the caller interrupting JmsDispatchFn.send(JmsDispatch).static interfaceInvoked after the TextMessage has been sent and before JmsDispatchFn.send(JmsDispatch) returns successfully.static interfaceInvoked after TextMessage is created for the JmsDispatch and just before the message is sent.