Modifier and Type | Field and Description |
---|---|
protected AtomicReference<Throwable> |
m_throwable |
static double |
NANOS_PER_MILLI |
Modifier | Constructor and Description |
---|---|
protected |
AbstractPinger(int pingerId,
NativeDatagramSocket pingSocket) |
Modifier and Type | Method and Description |
---|---|
void |
addPingReplyListener(PingReplyListener listener) |
void |
closeSocket() |
protected int |
getPingerId() |
protected NativeDatagramSocket |
getPingSocket() |
boolean |
isFinished() |
protected void |
notifyPingListeners(InetAddress address,
EchoPacket echoReply) |
abstract void |
ping(T addr,
int identifier,
int sequenceNumber,
long threadId,
long count,
long interval,
int packetSize) |
protected void |
setThrowable(Throwable e) |
void |
start() |
void |
stop() |
public static final double NANOS_PER_MILLI
protected final AtomicReference<Throwable> m_throwable
protected AbstractPinger(int pingerId, NativeDatagramSocket pingSocket)
protected NativeDatagramSocket getPingSocket()
protected int getPingerId()
public boolean isFinished()
public void start()
public void stop() throws InterruptedException
InterruptedException
public void closeSocket()
public abstract void ping(T addr, int identifier, int sequenceNumber, long threadId, long count, long interval, int packetSize) throws InterruptedException
InterruptedException
public void addPingReplyListener(PingReplyListener listener)
protected void notifyPingListeners(InetAddress address, EchoPacket echoReply)
protected void setThrowable(Throwable e)
Copyright © 2021. All rights reserved.