Class GcpFallbackChannel (1.17.0)
1.17.0 (latest)
1.13.0
1.12.0
1.11.0
public class GcpFallbackChannel extends ManagedChannel
Inheritance
java.lang.Object >
io.grpc.Channel >
io.grpc.ManagedChannel >
GcpFallbackChannel
Inherited Members
io.grpc.Channel.<RequestT,ResponseT>newCall(io.grpc.MethodDescriptor<RequestT,ResponseT>,io.grpc.CallOptions)
io.grpc.Channel.authority()
io.grpc.ManagedChannel.awaitTermination(long,java.util.concurrent.TimeUnit)
io.grpc.ManagedChannel.enterIdle()
io.grpc.ManagedChannel.getState(boolean)
io.grpc.ManagedChannel.isShutdown()
io.grpc.ManagedChannel.isTerminated()
io.grpc.ManagedChannel.notifyWhenStateChanged(io.grpc.ConnectivityState,java.lang.Runnable)
io.grpc.ManagedChannel.resetConnectBackoff()
io.grpc.ManagedChannel.shutdown()
io.grpc.ManagedChannel.shutdownNow()
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 )
Overrides
io.grpc.ManagedChannel.awaitTermination(long,java.util.concurrent.TimeUnit)
getState(boolean requestConnection)
public ConnectivityState getState ( boolean requestConnection )
Parameter
Name
Description
requestConnection
boolean
Returns
Type
Description
io.grpc.ConnectivityState
Overrides
io.grpc.ManagedChannel.getState(boolean)
isInFallbackMode()
public boolean isInFallbackMode ()
isShutdown()
public boolean isShutdown ()
Overrides
io.grpc.ManagedChannel.isShutdown()
isTerminated()
public boolean isTerminated ()
Overrides
io.grpc.ManagedChannel.isTerminated()
notifyWhenStateChanged(ConnectivityState source, Runnable callback)
public void notifyWhenStateChanged ( ConnectivityState source , Runnable callback )
Parameters
Name
Description
source
io.grpc.ConnectivityState
callback
Runnable
Overrides
io.grpc.ManagedChannel.notifyWhenStateChanged(io.grpc.ConnectivityState,java.lang.Runnable)
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()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-10-05 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-05 UTC."],[],[]]