| Constructor and Description |
|---|
MessengerImpl(co.paralleluniverse.galaxy.Messenger 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. |
public MessengerImpl(co.paralleluniverse.galaxy.Messenger messenger)
public void addMessageListener(long topic,
co.paralleluniverse.galaxy.MessageListener listener)
MessengerAdds a message listener on a lonng topic.
addMessageListener in interface Messengertopic - The topic.listener - The listener.public void addMessageListener(String topic, co.paralleluniverse.galaxy.MessageListener listener)
MessengerAdds a message listener on a String topic.
addMessageListener in interface Messengertopic - The topic.listener - The listener.public void removeMessageListener(long topic,
co.paralleluniverse.galaxy.MessageListener listener)
MessengerRemoves a message listener from a lonng topic.
removeMessageListener in interface Messengertopic - The topic.listener - The listener.public void removeMessageListener(String topic, co.paralleluniverse.galaxy.MessageListener listener)
MessengerRemoves a message listener from a String topic.
removeMessageListener in interface Messengertopic - The topic.listener - The listener.public void send(short node,
String topic,
byte[] data)
MessengerSends a message to a known node, on a String topic.
public void send(short node,
long topic,
co.paralleluniverse.common.io.Streamable data)
MessengerSends a message to a known node, on a long topic.
public void send(short node,
String topic,
co.paralleluniverse.common.io.Streamable data)
MessengerSends a message to a known node, on a String topic.
public void send(short node,
long topic,
byte[] data)
MessengerSends a message to a known node, on a long topic.
public void sendToOwnerOf(long ref,
long topic,
byte[] data)
throws co.paralleluniverse.galaxy.TimeoutException,
co.paralleluniverse.fibers.SuspendExecution
MessengerSends a message to a the owner of a known grid object node, on a long topic.
sendToOwnerOf in interface Messengerref - 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.SuspendExecutionpublic void sendToOwnerOf(long ref,
String topic,
byte[] data)
throws co.paralleluniverse.galaxy.TimeoutException,
co.paralleluniverse.fibers.SuspendExecution
MessengerSends a message to a the owner of a known grid object node, on a String topic.
sendToOwnerOf in interface Messengerref - 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.SuspendExecutionpublic void sendToOwnerOf(long ref,
long topic,
co.paralleluniverse.common.io.Streamable data)
throws co.paralleluniverse.galaxy.TimeoutException,
co.paralleluniverse.fibers.SuspendExecution
MessengerSends a message to a the owner of a known grid object node, on a long topic.
sendToOwnerOf in interface Messengerref - 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.SuspendExecutionpublic void sendToOwnerOf(long ref,
String topic,
co.paralleluniverse.common.io.Streamable data)
throws co.paralleluniverse.galaxy.TimeoutException,
co.paralleluniverse.fibers.SuspendExecution
MessengerSends a message to a the owner of a known grid object node, on a String topic.
sendToOwnerOf in interface Messengerref - 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