public static final class ChannelPoolConfig.Builder extends GeneratedMessage.Builder<ChannelPoolConfig.Builder> implements ChannelPoolConfigOrBuilderDeprecated. Use GcpManagedChannelOptions.GcpChannelPoolOptions class.
Protobuf type grpc.gcp.ChannelPoolConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ChannelPoolConfig.BuilderImplements
ChannelPoolConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ChannelPoolConfig build()| Returns | |
|---|---|
| Type | Description |
ChannelPoolConfig |
|
buildPartial()
public ChannelPoolConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
ChannelPoolConfig |
|
clear()
public ChannelPoolConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
ChannelPoolConfig.Builder |
|
clearIdleTimeout()
public ChannelPoolConfig.Builder clearIdleTimeout()The idle timeout (seconds) of channels without bound affinity sessions.
uint64 idle_timeout = 2;
| Returns | |
|---|---|
| Type | Description |
ChannelPoolConfig.Builder |
This builder for chaining. |
clearMaxConcurrentStreamsLowWatermark()
public ChannelPoolConfig.Builder clearMaxConcurrentStreamsLowWatermark()The low watermark of max number of concurrent streams in a channel. New channel will be created once it get hit, until we reach the max size of the channel pool. Values outside of [0..100] will be ignored. 0 = always create a new channel until max size is reached.
uint32 max_concurrent_streams_low_watermark = 3;
| Returns | |
|---|---|
| Type | Description |
ChannelPoolConfig.Builder |
This builder for chaining. |
clearMaxSize()
public ChannelPoolConfig.Builder clearMaxSize()The max number of channels in the pool.
uint32 max_size = 1;
| Returns | |
|---|---|
| Type | Description |
ChannelPoolConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ChannelPoolConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ChannelPoolConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getIdleTimeout()
public long getIdleTimeout()The idle timeout (seconds) of channels without bound affinity sessions.
uint64 idle_timeout = 2;
| Returns | |
|---|---|
| Type | Description |
long |
The idleTimeout. |
getMaxConcurrentStreamsLowWatermark()
public int getMaxConcurrentStreamsLowWatermark()The low watermark of max number of concurrent streams in a channel. New channel will be created once it get hit, until we reach the max size of the channel pool. Values outside of [0..100] will be ignored. 0 = always create a new channel until max size is reached.
uint32 max_concurrent_streams_low_watermark = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The maxConcurrentStreamsLowWatermark. |
getMaxSize()
public int getMaxSize()The max number of channels in the pool.
uint32 max_size = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The maxSize. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ChannelPoolConfig other)
public ChannelPoolConfig.Builder mergeFrom(ChannelPoolConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
ChannelPoolConfig |
| Returns | |
|---|---|
| Type | Description |
ChannelPoolConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ChannelPoolConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ChannelPoolConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ChannelPoolConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ChannelPoolConfig.Builder |
|
setIdleTimeout(long value)
public ChannelPoolConfig.Builder setIdleTimeout(long value)The idle timeout (seconds) of channels without bound affinity sessions.
uint64 idle_timeout = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe idleTimeout to set. |
| Returns | |
|---|---|
| Type | Description |
ChannelPoolConfig.Builder |
This builder for chaining. |
setMaxConcurrentStreamsLowWatermark(int value)
public ChannelPoolConfig.Builder setMaxConcurrentStreamsLowWatermark(int value)The low watermark of max number of concurrent streams in a channel. New channel will be created once it get hit, until we reach the max size of the channel pool. Values outside of [0..100] will be ignored. 0 = always create a new channel until max size is reached.
uint32 max_concurrent_streams_low_watermark = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe maxConcurrentStreamsLowWatermark to set. |
| Returns | |
|---|---|
| Type | Description |
ChannelPoolConfig.Builder |
This builder for chaining. |
setMaxSize(int value)
public ChannelPoolConfig.Builder setMaxSize(int value)The max number of channels in the pool.
uint32 max_size = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe maxSize to set. |
| Returns | |
|---|---|
| Type | Description |
ChannelPoolConfig.Builder |
This builder for chaining. |