public class ParallelPingResponseCallback extends Object implements PingResponseCallback
ParallelPingResponseCallback class.
| Constructor and Description | 
|---|
ParallelPingResponseCallback(int count)
Constructor for ParallelPingResponseCallback. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<Number> | 
getResponseTimes()
getResponseTimes 
 | 
void | 
handleError(InetAddress address,
           EchoPacket request,
           Throwable t)
handleError 
 | 
void | 
handleResponse(InetAddress address,
              EchoPacket response)
handleResponse 
 | 
void | 
handleTimeout(InetAddress address,
             EchoPacket request)
handleTimeout 
 | 
void | 
rethrowError()  | 
void | 
waitFor()
waitFor 
 | 
public ParallelPingResponseCallback(int count)
Constructor for ParallelPingResponseCallback.
count - a int.public void handleError(InetAddress address, EchoPacket request, Throwable t)
handleError
handleError in interface PingResponseCallbackaddress - a InetAddress object.request - a EchoPacket object.t - a Throwable object.public void handleResponse(InetAddress address, EchoPacket response)
handleResponse
handleResponse in interface PingResponseCallbackaddress - a InetAddress object.response - a EchoPacket object.public void handleTimeout(InetAddress address, EchoPacket request)
handleTimeout
handleTimeout in interface PingResponseCallbackaddress - a InetAddress object.request - TODOpublic void waitFor()
             throws InterruptedException
waitFor
InterruptedException - if any.Copyright © 2020. All rights reserved.