abstract class MessageDispatcher
Message dispatcher
This interface has methods that are required for working on dispatching messages.
<init> |
Message dispatcher MessageDispatcher(envelopeService: EnvelopeService) |
dispatch |
Dispatches the message. fun dispatch(agent: Agent, message: OutboundMessage): Completable
Dispatches the package. abstract fun dispatch(packed: OutboundPackage): Completable |
dispatchAndAwait |
Dispatches the message and awaits the response. fun dispatchAndAwait(agent: Agent, message: OutboundMessage): Maybe<String>
Dispatches the package and awaits the response. abstract fun dispatchAndAwait(packed: OutboundPackage): Maybe<String> |