|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.miv.mbox.net.RemoteMBox
public class RemoteMBox
Representation of a remove message box.
Instances of this class can be used to mimic the behaviour of a local message
box, allowing to post things in it, whereas the thing that lays under is a
Sender that transmit messages to a distant message box.
| Field Summary | |
|---|---|
protected String |
remoteMBoxName
Name of the remote message box. |
protected Sender |
sender
The sender. |
| Constructor Summary | |
|---|---|
RemoteMBox(Sender sender,
String remoteMBoxName)
New remote message box. |
|
| Method Summary | |
|---|---|
void |
post(String from,
Object... data)
Post a message to the remote message box. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Sender sender
protected String remoteMBoxName
| Constructor Detail |
|---|
public RemoteMBox(Sender sender,
String remoteMBoxName)
sender - Sender to the distant host containing the remove message
box.remoteMBoxName - Name of the distant message box on the distant
host.| Method Detail |
|---|
public void post(String from,
Object... data)
throws CannotPostException
post in interface MBoxfrom - The name of the message sender.data - A set of objects to send.
CannotPostException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||