Home
last modified time | relevance | path

Searched refs:stickinessState (Results 1 – 2 of 2) sorted by relevance

/external/grpc-grpc-java/core/src/main/java/io/grpc/util/
DRoundRobinLoadBalancerFactory.java121 private StickinessState stickinessState; field in RoundRobinLoadBalancerFactory.RoundRobinLoadBalancer
147 } else if (stickinessState == null in handleResolvedAddressGroups()
148 || !stickinessState.key.name().equals(stickinessMetadataKey)) { in handleResolvedAddressGroups()
149 stickinessState = new StickinessState(stickinessMetadataKey); in handleResolvedAddressGroups()
167 if (stickinessState != null) { in handleResolvedAddressGroups()
201 if (stateInfo.getState() == SHUTDOWN && stickinessState != null) { in handleSubchannelState()
202 stickinessState.remove(subchannel); in handleSubchannelState()
215 if (stickinessState != null) { in shutdownSubchannel()
216 stickinessState.remove(subchannel); in shutdownSubchannel()
259 updateBalancingState(READY, new ReadyPicker(activeList, startIndex, stickinessState)); in updateBalancingState()
[all …]
/external/grpc-grpc-java/core/src/test/java/io/grpc/util/
DRoundRobinLoadBalancerTest.java744 StickinessState stickinessState = new StickinessState("stick-key"); in internalPickerComparisons() local
748 ReadyPicker ready4 = new ReadyPicker(Arrays.asList(sc1, sc2), 1, stickinessState); in internalPickerComparisons()
749 ReadyPicker ready5 = new ReadyPicker(Arrays.asList(sc2, sc1), 0, stickinessState); in internalPickerComparisons()