Constructor and Description |
---|
ZenPing.PingCollection() |
Modifier and Type | Method and Description |
---|---|
boolean |
addPing(ZenPing.PingResponse ping)
adds a ping if newer than previous pings from the same node
|
void |
addPings(ZenPing.PingResponse[] pings)
adds multiple pings if newer than previous pings from the same node
|
int |
size()
the number of nodes for which there are known pings
|
ZenPing.PingResponse[] |
toArray()
serialize current pings to an array
|
public boolean addPing(ZenPing.PingResponse ping)
public void addPings(ZenPing.PingResponse[] pings)
public ZenPing.PingResponse[] toArray()
public int size()
Copyright © 2009–2016. All rights reserved.