public final class PingHandlerImpl extends java.lang.Object implements PingHandler
MAX_PING_TIME_COUNT| Constructor and Description |
|---|
PingHandlerImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.marketfactory.zerogc.api.RuThereMessage |
createPingMessageIfNeeded() |
void |
disable() |
void |
enable() |
java.util.List<PingTime> |
getLastPingTimes()
Returns the newest
PingHandler.MAX_PING_TIME_COUNT entries collected since the last call of this method. |
void |
resynchronize() |
void |
updateWith(com.marketfactory.zerogc.api.ImHereMessage incomingPing,
long receivedTimestampRelativeNs,
long receivedTimestampEpochNs) |
public void updateWith(com.marketfactory.zerogc.api.ImHereMessage incomingPing,
long receivedTimestampRelativeNs,
long receivedTimestampEpochNs)
updateWith in interface PingHandlerpublic void disable()
disable in interface PingHandlerpublic void enable()
enable in interface PingHandlerpublic com.marketfactory.zerogc.api.RuThereMessage createPingMessageIfNeeded()
createPingMessageIfNeeded in interface PingHandlerpublic void resynchronize()
resynchronize in interface PingHandlerpublic java.util.List<PingTime> getLastPingTimes()
PingHandlerPingHandler.MAX_PING_TIME_COUNT entries collected since the last call of this method.
This method is zero-gc. The returned list and the contained PingTimes are reused. This means you
cannot hold a reference to any of these objects.
getLastPingTimes in interface PingHandler