public interface Mailbox extends Clearable
Receiver
. Messages can be sent to a Receiver
by posting
them into the mailbox. Different mailbox implementations may differ in the way how they deliver the posted messages.Modifier and Type | Method and Description |
---|---|
void |
deliverAll(MessageKind kind)
Delivers all messages of the given kind from this mailbox.
|
Receiver |
getReceiver()
Returns the
Receiver of this mailbox. |
void |
postMessage(Direction direction,
Tuple update)
Posts a new message to this mailbox.
|
void postMessage(Direction direction, Tuple update)
direction
- the direction of the updateupdate
- the update elementvoid deliverAll(MessageKind kind)
kind
- the message kind