Class UrlTrackerHubConnection.UrlTrackerCallableClient

  • All Implemented Interfaces:
    CallableClient
    Enclosing class:
    UrlTrackerHubConnection

    private class UrlTrackerHubConnection.UrlTrackerCallableClient
    extends java.lang.Object
    implements CallableClient
    CallableClient wrapper implementation which intercepts communications, scans the payloads for URLs, and informs an associated UrlTracker.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void receiveCall​(java.lang.String senderId, java.lang.String msgId, Message msg)
      Receives a message for which a response is required.
      void receiveNotification​(java.lang.String senderId, Message msg)
      Receives a message for which no response is required.
      void receiveResponse​(java.lang.String responderId, java.lang.String msgTag, Response response)
      Receives a response to a message previously sent by this client.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UrlTrackerCallableClient

        UrlTrackerCallableClient​(CallableClient baseCallable)
        Constructor.
        Parameters:
        baseCallable - object on which this one is based
    • Method Detail

      • receiveCall

        public void receiveCall​(java.lang.String senderId,
                                java.lang.String msgId,
                                Message msg)
                         throws java.lang.Exception
        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:
        java.lang.Exception
      • receiveNotification

        public void receiveNotification​(java.lang.String senderId,
                                        Message msg)
                                 throws java.lang.Exception
        Description copied from interface: CallableClient
        Receives a message for which no response is required.
        Specified by:
        receiveNotification in interface CallableClient
        Parameters:
        senderId - public ID of sending client
        msg - message
        Throws:
        java.lang.Exception
      • 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