Class MessageTrackerHubService.MessageTrackerCallableClient

  • All Implemented Interfaces:
    CallableClient
    Enclosing class:
    MessageTrackerHubService

    private class MessageTrackerHubService.MessageTrackerCallableClient
    extends java.lang.Object
    implements CallableClient
    Wrapper implementation for the CallableClient class which intercepts calls to update sent and received transmission list models.
    • Method Detail

      • receiveCall

        public void receiveCall​(java.lang.String senderId,
                                java.lang.String msgId,
                                Message msg)
                         throws SampException
        Description copied from interface: CallableClient
        Receives a message for which a response is required. The implementation must take care to call the hub's reply method at some future point.
        Specified by:
        receiveCall in interface CallableClient
        Parameters:
        senderId - public ID of sending client
        msgId - message identifier for later use with reply
        msg - message
        Throws:
        SampException
      • receiveResponse

        public void receiveResponse​(java.lang.String responderId,
                                    java.lang.String msgTag,
                                    Response response)
                             throws java.lang.Exception
        Description copied from interface: CallableClient
        Receives a response to a message previously sent by this client.
        Specified by:
        receiveResponse in interface CallableClient
        Parameters:
        responderId - public ID of responding client
        msgTag - client-defined tag labelling previously-sent message
        response - returned response object
        Throws:
        java.lang.Exception