Package io.grpc.internal
Class DelayedClientTransport.PickerState
- java.lang.Object
-
- io.grpc.internal.DelayedClientTransport.PickerState
-
- Enclosing class:
- DelayedClientTransport
static final class DelayedClientTransport.PickerState extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) LoadBalancer.SubchannelPickerlastPickerThe last picker thatDelayedClientTransport.reprocess(io.grpc.LoadBalancer.SubchannelPicker)has used.(package private) StatusshutdownStatusWhenshutdownStatus != null && !hasPendingStreams(), then the transport is considered terminated.
-
Constructor Summary
Constructors Modifier Constructor Description privatePickerState(LoadBalancer.SubchannelPicker lastPicker, Status shutdownStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DelayedClientTransport.PickerStatewithPicker(LoadBalancer.SubchannelPicker newPicker)DelayedClientTransport.PickerStatewithShutdownStatus(Status newShutdownStatus)
-
-
-
Field Detail
-
lastPicker
@Nullable final LoadBalancer.SubchannelPicker lastPicker
The last picker thatDelayedClientTransport.reprocess(io.grpc.LoadBalancer.SubchannelPicker)has used. May be set to null when the channel has moved to idle.
-
shutdownStatus
@Nullable final Status shutdownStatus
WhenshutdownStatus != null && !hasPendingStreams(), then the transport is considered terminated.
-
-
Constructor Detail
-
PickerState
private PickerState(LoadBalancer.SubchannelPicker lastPicker, Status shutdownStatus)
-
-
Method Detail
-
withPicker
public DelayedClientTransport.PickerState withPicker(LoadBalancer.SubchannelPicker newPicker)
-
withShutdownStatus
public DelayedClientTransport.PickerState withShutdownStatus(Status newShutdownStatus)
-
-