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 PingResponseCallback
address
- a InetAddress
object.request
- a EchoPacket
object.t
- a Throwable
object.public void handleResponse(InetAddress address, EchoPacket response)
handleResponse
handleResponse
in interface PingResponseCallback
address
- a InetAddress
object.response
- a EchoPacket
object.public void handleTimeout(InetAddress address, EchoPacket request)
handleTimeout
handleTimeout
in interface PingResponseCallback
address
- a InetAddress
object.request
- TODOpublic void waitFor() throws InterruptedException
waitFor
InterruptedException
- if any.Copyright © 2021. All rights reserved.