Interface MessageInterface


public interface MessageInterface
  • Method Details

    • addMessageReciever

      void addMessageReciever(String protocol, MessageReceiver recv)
    • sendMessage

      void sendMessage(String protocol, int scope, Serializable msg) throws Exception
      Sends an asynchronous message
      Throws:
      Exception
    • sendCall

      Serializable sendCall(String protocol, int scope, Serializable msg) throws 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:
      Exception