Class GcpManagedChannel.ChannelAffinityRef (1.11.0)

public static final class GcpManagedChannel.ChannelAffinityRef

Opaque sticky channel reference for callers that should not depend on ChannelRef.

Inheritance

java.lang.Object > GcpManagedChannel.ChannelAffinityRef

Constructors

ChannelAffinityRef()

public ChannelAffinityRef()

Methods

useDifferentChannelOnNextCall()

public void useDifferentChannelOnNextCall()

Forces the next RPC to prefer a different active channel if one is available.