Class InternalSubchannel.Index

java.lang.Object
io.grpc.internal.InternalSubchannel.Index
Enclosing class:
InternalSubchannel

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

    • addressGroups

      private List<EquivalentAddressGroup> addressGroups
    • groupIndex

      private int groupIndex
    • addressIndex

      private int addressIndex
  • Constructor Details

  • Method Details

    • isValid

      public boolean isValid()
    • isAtBeginning

      public boolean isAtBeginning()
    • increment

      public void increment()
    • reset

      public void reset()
    • getCurrentAddress

      public SocketAddress getCurrentAddress()
    • getCurrentEagAttributes

      public Attributes getCurrentEagAttributes()
    • getGroups

      public List<EquivalentAddressGroup> getGroups()
    • updateGroups

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

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