public interface PingHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PING_TIME_COUNT |
| Modifier and Type | Method and Description |
|---|---|
com.marketfactory.zerogc.api.RuThereMessage |
createPingMessageIfNeeded() |
void |
disable() |
void |
enable() |
java.util.List<PingTime> |
getLastPingTimes()
Returns the newest
MAX_PING_TIME_COUNT entries collected since the last call of this method. |
void |
resynchronize() |
void |
updateWith(com.marketfactory.zerogc.api.ImHereMessage incomingPing) |
static final int MAX_PING_TIME_COUNT
void updateWith(com.marketfactory.zerogc.api.ImHereMessage incomingPing)
void disable()
void enable()
com.marketfactory.zerogc.api.RuThereMessage createPingMessageIfNeeded()
void resynchronize()
java.util.List<PingTime> getLastPingTimes()
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.