|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MBox
Container for incoming messages.
The message box acts as a buffer for incoming messages. Its major property is to be usable from any thread. This allows any external source to post any message at any time without having to wonder about synchronisation.
This interface contains only one command: post(String, Object[])
that allow to post messages in the message box. The way messages are
retrieved inside the box depends on particular implementations (after all,
only a postman can open mail boxes).
| Method Summary | |
|---|---|
void |
post(String from,
Object... data)
Post a message in the message box. |
| Method Detail |
|---|
void post(String from,
Object... data)
throws CannotPostException
from - Identifier of the sending object.data - Array of posted objects.
CannotPostException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||