public interface Messenger extends AutoCloseable
OutgoingMessages.| Modifier and Type | Method and Description |
|---|---|
default void |
close() |
void |
sendOutgoingMessage(OutgoingMessage outgoingMessage)
Performs the necessary action to dispatch the message using the means
of the messenger.
|
void sendOutgoingMessage(@Nonnull OutgoingMessage outgoingMessage)
The outgoing message instance is guaranteed to be an instance of one
of the interfaces extending Message in the
'api.messenger.message.type' package.
This call is always made async.
outgoingMessage - the outgoing messagedefault void close()
close in interface AutoCloseableCopyright © 2018. All rights reserved.