public interface IMessageFeature
Modifier and Type | Method and Description |
---|---|
IFuture<java.lang.Void> |
addMessageHandler(IMessageHandler handler)
Add a message handler.
|
IFuture<java.lang.Void> |
removeMessageHandler(IMessageHandler handler)
Remove a message handler.
|
IFuture<java.lang.Void> |
sendMessage(java.util.Map<java.lang.String,java.lang.Object> me,
MessageType mt)
Send a message.
|
IFuture<java.lang.Void> |
sendMessage(java.util.Map<java.lang.String,java.lang.Object> me,
MessageType mt,
byte[] codecids)
Send a message.
|
IFuture<java.lang.Void> |
sendMessageAndWait(java.util.Map<java.lang.String,java.lang.Object> me,
MessageType mt,
IMessageHandler handler)
Send a message and wait for a reply.
|
IFuture<java.lang.Void> sendMessage(java.util.Map<java.lang.String,java.lang.Object> me, MessageType mt)
me
- The message content (name value pairs).mt
- The message type describing the content.IFuture<java.lang.Void> sendMessage(java.util.Map<java.lang.String,java.lang.Object> me, MessageType mt, byte[] codecids)
me
- The message content (name value pairs).mt
- The message type describing the content.IFuture<java.lang.Void> sendMessageAndWait(java.util.Map<java.lang.String,java.lang.Object> me, MessageType mt, IMessageHandler handler)
me
- The message content (name value pairs).mt
- The message type describing the content.IFuture<java.lang.Void> addMessageHandler(IMessageHandler handler)
The
- handler.IFuture<java.lang.Void> removeMessageHandler(IMessageHandler handler)
handler
- The handler.