public static class ZenPing.PingCollection
extends java.lang.Object
Constructor and Description |
---|
PingCollection() |
Modifier and Type | Method and Description |
---|---|
boolean |
addPing(ZenPing.PingResponse ping)
adds a ping if newer than previous pings from the same node
|
int |
size()
the number of nodes for which there are known pings
|
java.util.List<ZenPing.PingResponse> |
toList()
serialize current pings to a list.
|
public boolean addPing(ZenPing.PingResponse ping)
public java.util.List<ZenPing.PingResponse> toList()
public int size()