Class GcpManagedChannelOptions.GcpChannelPoolOptions (1.17.0)

public static class GcpManagedChannelOptions.GcpChannelPoolOptions

Channel pool configuration for the GCP managed channel.

Inheritance

java.lang.Object > GcpManagedChannelOptions.GcpChannelPoolOptions

Static Methods

newBuilder()

public static GcpManagedChannelOptions.GcpChannelPoolOptions.Builder newBuilder()

Creates a new GcpChannelPoolOptions.Builder.

Returns
Type Description
GcpManagedChannelOptions.GcpChannelPoolOptions.Builder

newBuilder(GcpManagedChannelOptions.GcpChannelPoolOptions options)

public static GcpManagedChannelOptions.GcpChannelPoolOptions.Builder newBuilder(GcpManagedChannelOptions.GcpChannelPoolOptions options)

Creates a new GcpChannelPoolOptions.Builder from GcpChannelPoolOptions.

Parameter
Name Description
options GcpManagedChannelOptions.GcpChannelPoolOptions
Returns
Type Description
GcpManagedChannelOptions.GcpChannelPoolOptions.Builder

Constructors

GcpChannelPoolOptions(GcpManagedChannelOptions.GcpChannelPoolOptions.Builder builder)

public GcpChannelPoolOptions(GcpManagedChannelOptions.GcpChannelPoolOptions.Builder builder)
Parameter
Name Description
builder GcpManagedChannelOptions.GcpChannelPoolOptions.Builder

Methods

getAffinityKeyLifetime()

public Duration getAffinityKeyLifetime()
Returns
Type Description
Duration

getChannelPickStrategy()

public GcpManagedChannelOptions.ChannelPickStrategy getChannelPickStrategy()
Returns
Type Description
GcpManagedChannelOptions.ChannelPickStrategy

getChannelPrimeMaxAttempts()

public int getChannelPrimeMaxAttempts()
Returns
Type Description
int

getChannelPrimeTimeout()

public Duration getChannelPrimeTimeout()
Returns
Type Description
Duration

getChannelPrimer()

public GcpChannelPrimer getChannelPrimer()
Returns
Type Description
GcpChannelPrimer

getCleanupInterval()

public Duration getCleanupInterval()
Returns
Type Description
Duration

getConcurrentStreamsLowWatermark()

public int getConcurrentStreamsLowWatermark()
Returns
Type Description
int

getDrainIdleGrace()

public Duration getDrainIdleGrace()
Returns
Type Description
Duration

getErrorPenaltyDuration()

public Duration getErrorPenaltyDuration()
Returns
Type Description
Duration

getErrorPenaltyStep()

public int getErrorPenaltyStep()
Returns
Type Description
int

getInitSize()

public int getInitSize()
Returns
Type Description
int

getMaxRpcPerChannel()

public int getMaxRpcPerChannel()
Returns
Type Description
int

getMaxScaleDownChannels()

public int getMaxScaleDownChannels()
Returns
Type Description
int

getMaxScaleUpPercent()

public int getMaxScaleUpPercent()
Returns
Type Description
int

getMaxSize()

public int getMaxSize()
Returns
Type Description
int

getMinRpcPerChannel()

public int getMinRpcPerChannel()
Returns
Type Description
int

getMinSize()

public int getMinSize()
Returns
Type Description
int

getScaleDownConsecutiveLowLoadChecks()

public int getScaleDownConsecutiveLowLoadChecks()
Returns
Type Description
int

getScaleDownInterval()

public Duration getScaleDownInterval()
Returns
Type Description
Duration

getScaleUpCooldown()

public Duration getScaleUpCooldown()
Returns
Type Description
Duration

isUseRoundRobinOnBind()

public boolean isUseRoundRobinOnBind()
Returns
Type Description
boolean

toString()

public String toString()
Returns
Type Description
String
Overrides