Class ZenPing.PingCollection

Enclosing interface:

public static class ZenPing.PingCollection extends Object
a utility collection of pings where only the most recent ping is stored per node
  • Constructor Details

    • PingCollection

      public PingCollection()
  • Method Details

    • addPing

      public boolean addPing(ZenPing.PingResponse ping)
      adds a ping if newer than previous pings from the same node
      true if added, false o.w.
    • toList

      public List<ZenPing.PingResponse> toList()
      serialize current pings to a list. It is guaranteed that the list contains one ping response per node
    • size

      public int size()
      the number of nodes for which there are known pings