Class InternalSubchannel.Index

  • Enclosing class:
    InternalSubchannel

    static final class InternalSubchannel.Index
    extends java.lang.Object
    Index as in 'i', the pointer to an entry. Not a "search index."
    • Field Detail

      • groupIndex

        private int groupIndex
      • addressIndex

        private int addressIndex
    • Method Detail

      • isValid

        public boolean isValid()
      • isAtBeginning

        public boolean isAtBeginning()
      • increment

        public void increment()
      • reset

        public void reset()
      • getCurrentAddress

        public java.net.SocketAddress getCurrentAddress()
      • getCurrentEagAttributes

        public Attributes getCurrentEagAttributes()
      • updateGroups

        public void updateGroups​(java.util.List<EquivalentAddressGroup> newGroups)
        Update to new groups, resetting the current index.
      • seekTo

        public boolean seekTo​(java.net.SocketAddress needle)
        Returns false if the needle was not found and the current index was left unchanged.