Interface MessageInterface
-
public interface MessageInterface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addMessageReciever(java.lang.String protocol, MessageReceiver recv)
java.io.Serializable
sendCall(java.lang.String protocol, int scope, java.io.Serializable msg)
Sends a synchronous message.void
sendMessage(java.lang.String protocol, int scope, java.io.Serializable msg)
Sends an asynchronous message
-
-
-
Method Detail
-
addMessageReciever
void addMessageReciever(java.lang.String protocol, MessageReceiver recv)
-
sendMessage
void sendMessage(java.lang.String protocol, int scope, java.io.Serializable msg) throws java.lang.Exception
Sends an asynchronous message- Throws:
java.lang.Exception
-
sendCall
java.io.Serializable sendCall(java.lang.String protocol, int scope, java.io.Serializable msg) throws java.lang.Exception
Sends a synchronous message. If any reciever throws an exception, then that exception will be re-thrown on the sender's side. If all receivers succeed, one of their repsonses will be chosen- Throws:
java.lang.Exception
-
-