Interface Messenger<ReqT,​ReplyT>

  • All Known Implementing Classes:
    JnaIcmpMessenger, Jni6IcmpMessenger, JniIcmpMessenger

    public interface Messenger<ReqT,​ReplyT>
    A class that represents a simple messaging interface. This is possibly loss less and does not imply guaranteed deliver. The only real requirements are those implied by the Request and Reply interfaces.
    Author:
    brozow
    • Method Detail

      • sendRequest

        void sendRequest​(ReqT request)
                  throws Exception
        Send a message using the messenger service
        Throws:
        Exception
      • start

        void start​(ReplyHandler<ReplyT> callback)
        Start listening for replies and call the reply handler with any replies received.