org.miv.mbox
Interface MBox

All Known Implementing Classes:
MBoxBase, MBoxStandalone, RemoteMBox

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).

Since:
20040624
Author:
Antoine Dutot

Method Summary
 void post(String from, Object... data)
          Post a message in the message box.
 

Method Detail

post

void post(String from,
          Object... data)
          throws CannotPostException
Post a message in the message box. This method can be called from another thread.

Parameters:
from - Identifier of the sending object.
data - Array of posted objects.
Throws:
CannotPostException


Copyright © 2011. All Rights Reserved.