Class LiveNodesSet

  • All Implemented Interfaces:

    public class LiveNodesSet
    extends Object
    implements Iterable<String>
    This class represents a set of live nodes and allows adding listeners to track their state.
    • Constructor Detail

      • LiveNodesSet

        public LiveNodesSet()
    • Method Detail

      • size

        public int size()
      • registerLiveNodesListener

        public void registerLiveNodesListener​(LiveNodesListener listener)
      • removeLiveNodesListener

        public void removeLiveNodesListener​(LiveNodesListener listener)
      • removeAllLiveNodesListeners

        public void removeAllLiveNodesListeners()
      • isEmpty

        public boolean isEmpty()
      • contains

        public boolean contains​(String id)
      • add

        public boolean add​(String id)
      • remove

        public boolean remove​(String id)
      • clear

        public void clear()