Class GcpFallbackChannel (1.11.0)

public class GcpFallbackChannel extends ManagedChannel

Inheritance

java.lang.Object > io.grpc.Channel > io.grpc.ManagedChannel > GcpFallbackChannel

Constructors

GcpFallbackChannel(GcpFallbackChannelOptions options, ManagedChannel primaryChannel, ManagedChannel fallbackChannel)

public GcpFallbackChannel(GcpFallbackChannelOptions options, ManagedChannel primaryChannel, ManagedChannel fallbackChannel)
Parameters
Name Description
options GcpFallbackChannelOptions
primaryChannel io.grpc.ManagedChannel
fallbackChannel io.grpc.ManagedChannel

GcpFallbackChannel(GcpFallbackChannelOptions options, ManagedChannelBuilder<?> primaryChannelBuilder, ManagedChannelBuilder<?> fallbackChannelBuilder)

public GcpFallbackChannel(GcpFallbackChannelOptions options, ManagedChannelBuilder<?> primaryChannelBuilder, ManagedChannelBuilder<?> fallbackChannelBuilder)
Parameters
Name Description
options GcpFallbackChannelOptions
primaryChannelBuilder io.grpc.ManagedChannelBuilder<?>
fallbackChannelBuilder io.grpc.ManagedChannelBuilder<?>

Methods

<RequestT,ResponseT>newCall(MethodDescriptor<RequestT,ResponseT> methodDescriptor, CallOptions callOptions)

public ClientCall<RequestT,ResponseT> <RequestT,ResponseT>newCall(MethodDescriptor<RequestT,ResponseT> methodDescriptor, CallOptions callOptions)
Parameters
Name Description
methodDescriptor io.grpc.MethodDescriptor<RequestT,ResponseT>
callOptions io.grpc.CallOptions
Returns
Type Description
io.grpc.ClientCall<RequestT,ResponseT>
Overrides
io.grpc.Channel.<RequestT,ResponseT>newCall(io.grpc.MethodDescriptor<RequestT,ResponseT>,io.grpc.CallOptions)

authority()

public String authority()
Returns
Type Description
String
Overrides
io.grpc.Channel.authority()

awaitTermination(long timeout, TimeUnit unit)

public boolean awaitTermination(long timeout, TimeUnit unit)
Parameters
Name Description
timeout long
unit TimeUnit
Returns
Type Description
boolean
Overrides
io.grpc.ManagedChannel.awaitTermination(long,java.util.concurrent.TimeUnit)
Exceptions
Type Description
InterruptedException

isInFallbackMode()

public boolean isInFallbackMode()
Returns
Type Description
boolean

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean
Overrides
io.grpc.ManagedChannel.isShutdown()

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean
Overrides
io.grpc.ManagedChannel.isTerminated()

shutdown()

public ManagedChannel shutdown()
Returns
Type Description
io.grpc.ManagedChannel
Overrides
io.grpc.ManagedChannel.shutdown()

shutdownNow()

public ManagedChannel shutdownNow()
Returns
Type Description
io.grpc.ManagedChannel
Overrides
io.grpc.ManagedChannel.shutdownNow()