Package io.grpc.internal
Class InternalSubchannel.Index
java.lang.Object
io.grpc.internal.InternalSubchannel.Index
- Enclosing class:
InternalSubchannel
Index as in 'i', the pointer to an entry. Not a "search index."
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanisValid()voidreset()booleanseekTo(SocketAddress needle) Returns false if the needle was not found and the current index was left unchanged.voidupdateGroups(List<EquivalentAddressGroup> newGroups) Update to new groups, resetting the current index.
-
Field Details
-
addressGroups
-
groupIndex
private int groupIndex -
addressIndex
private int addressIndex
-
-
Constructor Details
-
Index
-
-
Method Details
-
isValid
public boolean isValid() -
isAtBeginning
public boolean isAtBeginning() -
increment
public void increment() -
reset
public void reset() -
getCurrentAddress
-
getCurrentEagAttributes
-
getGroups
-
updateGroups
Update to new groups, resetting the current index. -
seekTo
Returns false if the needle was not found and the current index was left unchanged.
-