|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICommunication
Communication operations for sending and receiving messages. For message received methods, the identifier of the message sender is precised in the received message.
Method Summary | |
---|---|
Message |
asynchReceiveMessage()
Return a received message coming from any remote process. |
boolean |
availableMessage()
Check if there is unread received messages |
void |
sendMessage(Message msg)
Send a message to a remote process which address is embedded in the message. |
void |
sendMessage(ProcessIdentifier id,
java.lang.Object data)
Send a message to a remote process. |
Message |
synchReceiveMessage()
Return a received message coming from any remote process. |
Method Detail |
---|
void sendMessage(Message msg) throws CommunicationException
msg
- the message to send
CommunicationException
- in case of communication errorvoid sendMessage(ProcessIdentifier id, java.lang.Object data) throws CommunicationException
id
- the identifier, including its physical address, of the remote processdata
- the data to send to the remote process
CommunicationException
- in case of communication errorMessage synchReceiveMessage()
Message asynchReceiveMessage()
null
value.
null
if noneboolean availableMessage()
true
if there is at least one unread received message,
false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |