Class ParallelPingResponseCallback

    • Constructor Detail

      • ParallelPingResponseCallback

        public ParallelPingResponseCallback​(int count)

        Constructor for ParallelPingResponseCallback.

        Parameters:
        count - a int.
    • Method Detail

      • handleError

        public void handleError​(java.net.InetAddress address,
                                EchoPacket request,
                                java.lang.Throwable t)

        handleError

        Specified by:
        handleError in interface PingResponseCallback
        Parameters:
        address - a InetAddress object.
        request - a EchoPacket object.
        t - a Throwable object.
      • handleTimeout

        public void handleTimeout​(java.net.InetAddress address,
                                  EchoPacket request)

        handleTimeout

        Specified by:
        handleTimeout in interface PingResponseCallback
        Parameters:
        address - a InetAddress object.
        request - TODO
      • waitFor

        public void waitFor()
                     throws java.lang.InterruptedException

        waitFor

        Throws:
        java.lang.InterruptedException - if any.
      • rethrowError

        public void rethrowError()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getResponseTimes

        public java.util.List<java.lang.Number> getResponseTimes()

        getResponseTimes

        Returns:
        a List object.