Send feedback
Class GcpFallbackChannelOptions.Builder (1.11.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static class GcpFallbackChannelOptions . Builder
Static Methods
newBuilder()
public static GcpFallbackChannelOptions . Builder newBuilder ()
Constructors
Builder()
Methods
build()
public GcpFallbackChannelOptions build ()
setEnableFallback(boolean enableFallback)
public GcpFallbackChannelOptions . Builder setEnableFallback ( boolean enableFallback )
Parameter
Name
Description
enableFallback
boolean
setErroneousStates(Set<Status.Code> erroneousStates)
public GcpFallbackChannelOptions . Builder setErroneousStates ( Set<Status . Code > erroneousStates )
Parameter
Name
Description
erroneousStates
Set <io.grpc.Status.Code >
setErrorRateThreshold(float errorRateThreshold)
public GcpFallbackChannelOptions . Builder setErrorRateThreshold ( float errorRateThreshold )
Parameter
Name
Description
errorRateThreshold
float
setFallbackChannelName(String fallbackChannelName)
public GcpFallbackChannelOptions . Builder setFallbackChannelName ( String fallbackChannelName )
Parameter
Name
Description
fallbackChannelName
String
setFallbackProbingFunction(Function<Channel,String> fallbackProbingFunction)
public GcpFallbackChannelOptions . Builder setFallbackProbingFunction ( Function<Channel , String > fallbackProbingFunction )
Parameter
Name
Description
fallbackProbingFunction
Function <io.grpc.Channel ,String >
setFallbackProbingInterval(Duration fallbackProbingInterval)
public GcpFallbackChannelOptions . Builder setFallbackProbingInterval ( Duration fallbackProbingInterval )
Parameter
Name
Description
fallbackProbingInterval
Duration
setGcpFallbackOpenTelemetry(GcpFallbackOpenTelemetry openTelemetry)
public GcpFallbackChannelOptions . Builder setGcpFallbackOpenTelemetry ( GcpFallbackOpenTelemetry openTelemetry )
setMinFailedCalls(int minFailedCalls)
public GcpFallbackChannelOptions . Builder setMinFailedCalls ( int minFailedCalls )
Parameter
Name
Description
minFailedCalls
int
setPeriod(Duration period)
public GcpFallbackChannelOptions . Builder setPeriod ( Duration period )
Parameter
Name
Description
period
Duration
setPrimaryChannelName(String primaryChannelName)
public GcpFallbackChannelOptions . Builder setPrimaryChannelName ( String primaryChannelName )
Parameter
Name
Description
primaryChannelName
String
setPrimaryProbingFunction(Function<Channel,String> primaryProbingFunction)
public GcpFallbackChannelOptions . Builder setPrimaryProbingFunction ( Function<Channel , String > primaryProbingFunction )
Parameter
Name
Description
primaryProbingFunction
Function <io.grpc.Channel ,String >
setPrimaryProbingInterval(Duration primaryProbingInterval)
public GcpFallbackChannelOptions . Builder setPrimaryProbingInterval ( Duration primaryProbingInterval )
Parameter
Name
Description
primaryProbingInterval
Duration
setProbingFunction(Function<Channel,String> probingFunction)
public GcpFallbackChannelOptions . Builder setProbingFunction ( Function<Channel , String > probingFunction )
Parameter
Name
Description
probingFunction
Function <io.grpc.Channel ,String >
Send feedback
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-06-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-19 UTC."],[],[]]