public interface Messenger
| Modifier and Type | Method and Description |
|---|---|
void |
addMessageListener(long topic,
co.paralleluniverse.galaxy.MessageListener listener)
Adds a message listener on a
lonng topic. |
void |
addMessageListener(String topic,
co.paralleluniverse.galaxy.MessageListener listener)
Adds a message listener on a
String topic. |
void |
removeMessageListener(long topic,
co.paralleluniverse.galaxy.MessageListener listener)
Removes a message listener from a
lonng topic. |
void |
removeMessageListener(String topic,
co.paralleluniverse.galaxy.MessageListener listener)
Removes a message listener from a
String topic. |
void |
send(short node,
long topic,
byte[] data)
Sends a message to a known node, on a
long topic. |
void |
send(short node,
long topic,
co.paralleluniverse.common.io.Streamable data)
Sends a message to a known node, on a
long topic. |
void |
send(short node,
String topic,
byte[] data)
Sends a message to a known node, on a
String topic. |
void |
send(short node,
String topic,
co.paralleluniverse.common.io.Streamable data)
Sends a message to a known node, on a
String topic. |
void |
sendToOwnerOf(long ref,
long topic,
byte[] data)
Sends a message to a the owner of a known grid object node, on a
long topic. |
void |
sendToOwnerOf(long ref,
long topic,
co.paralleluniverse.common.io.Streamable data)
Sends a message to a the owner of a known grid object node, on a
long topic. |
void |
sendToOwnerOf(long ref,
String topic,
byte[] data)
Sends a message to a the owner of a known grid object node, on a
String topic. |
void |
sendToOwnerOf(long ref,
String topic,
co.paralleluniverse.common.io.Streamable data)
Sends a message to a the owner of a known grid object node, on a
String topic. |
void addMessageListener(long topic,
co.paralleluniverse.galaxy.MessageListener listener)
lonng topic.topic - The topic.listener - The listener.void addMessageListener(String topic, co.paralleluniverse.galaxy.MessageListener listener)
String topic.topic - The topic.listener - The listener.void removeMessageListener(long topic,
co.paralleluniverse.galaxy.MessageListener listener)
lonng topic.topic - The topic.listener - The listener.void removeMessageListener(String topic, co.paralleluniverse.galaxy.MessageListener listener)
String topic.topic - The topic.listener - The listener.void send(short node,
String topic,
byte[] data)
String topic.node - The node to which to send the message.topic - The message's topic.data - The message.co.paralleluniverse.galaxy.TimeoutException - This exception is thrown if the operation has times-out.void send(short node,
long topic,
co.paralleluniverse.common.io.Streamable data)
long topic.node - The node to which to send the message.topic - The message's topic.data - The message.co.paralleluniverse.galaxy.TimeoutException - This exception is thrown if the operation has times-out.void send(short node,
String topic,
co.paralleluniverse.common.io.Streamable data)
String topic.node - The node to which to send the message.topic - The message's topic.data - The message.void send(short node,
long topic,
byte[] data)
long topic.node - The node to which to send the message.topic - The message's topic.data - The message.co.paralleluniverse.galaxy.TimeoutException - This exception is thrown if the operation has times-out.void sendToOwnerOf(long ref,
long topic,
byte[] data)
throws co.paralleluniverse.galaxy.TimeoutException,
co.paralleluniverse.fibers.SuspendExecution
long topic.ref - The grid ref to whose owner the message is to be sent.topic - The message's topic.data - The message.co.paralleluniverse.galaxy.TimeoutException - This exception is thrown if the operation has times-out.co.paralleluniverse.fibers.SuspendExecutionvoid sendToOwnerOf(long ref,
String topic,
byte[] data)
throws co.paralleluniverse.galaxy.TimeoutException,
co.paralleluniverse.fibers.SuspendExecution
String topic.ref - The grid ref to whose owner the message is to be sent.topic - The message's topic.data - The message.co.paralleluniverse.galaxy.TimeoutException - This exception is thrown if the operation has times-out.co.paralleluniverse.fibers.SuspendExecutionvoid sendToOwnerOf(long ref,
long topic,
co.paralleluniverse.common.io.Streamable data)
throws co.paralleluniverse.galaxy.TimeoutException,
co.paralleluniverse.fibers.SuspendExecution
long topic.ref - The grid ref to whose owner the message is to be sent.topic - The message's topic.data - The message.co.paralleluniverse.galaxy.TimeoutException - This exception is thrown if the operation has times-out.co.paralleluniverse.fibers.SuspendExecutionvoid sendToOwnerOf(long ref,
String topic,
co.paralleluniverse.common.io.Streamable data)
throws co.paralleluniverse.galaxy.TimeoutException,
co.paralleluniverse.fibers.SuspendExecution
String topic.ref - The grid ref to whose owner the message is to be sent.topic - The message's topic.data - The message.co.paralleluniverse.galaxy.TimeoutException - This exception is thrown if the operation has times-out.co.paralleluniverse.fibers.SuspendExecution