public static final class RedisProxy.ConnPoolSettings.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder> implements RedisProxy.ConnPoolSettingsOrBuilder
Redis connection pool settings. [#next-free-field: 9]Protobuf type
envoy.config.filter.network.redis_proxy.v2.RedisProxy.ConnPoolSettings| Modifier and Type | Method and Description |
|---|---|
RedisProxy.ConnPoolSettings.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RedisProxy.ConnPoolSettings |
build() |
RedisProxy.ConnPoolSettings |
buildPartial() |
RedisProxy.ConnPoolSettings.Builder |
clear() |
RedisProxy.ConnPoolSettings.Builder |
clearBufferFlushTimeout()
The encoded request buffer is flushed N milliseconds after the first request has been
encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`.
|
RedisProxy.ConnPoolSettings.Builder |
clearEnableCommandStats()
Enable per-command statistics per upstream cluster, in addition to the filter level aggregate
count.
|
RedisProxy.ConnPoolSettings.Builder |
clearEnableHashtagging()
Use hash tagging on every redis key to guarantee that keys with the same hash tag will be
forwarded to the same upstream.
|
RedisProxy.ConnPoolSettings.Builder |
clearEnableRedirection()
Accept `moved and ask redirection
<https://redis.io/topics/cluster-spec#redirection-and-resharding>`_ errors from upstream
redis servers, and retry commands to the specified target server.
|
RedisProxy.ConnPoolSettings.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RedisProxy.ConnPoolSettings.Builder |
clearMaxBufferSizeBeforeFlush()
Maximum size of encoded request buffer before flush is triggered and encoded requests
are sent upstream.
|
RedisProxy.ConnPoolSettings.Builder |
clearMaxUpstreamUnknownConnections()
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts
can be created at any given time by any given worker thread (see `enable_redirection` for
more details).
|
RedisProxy.ConnPoolSettings.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RedisProxy.ConnPoolSettings.Builder |
clearOpTimeout()
Per-operation timeout in milliseconds.
|
RedisProxy.ConnPoolSettings.Builder |
clearReadPolicy()
Read policy.
|
RedisProxy.ConnPoolSettings.Builder |
clone() |
com.google.protobuf.Duration |
getBufferFlushTimeout()
The encoded request buffer is flushed N milliseconds after the first request has been
encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`.
|
com.google.protobuf.Duration.Builder |
getBufferFlushTimeoutBuilder()
The encoded request buffer is flushed N milliseconds after the first request has been
encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`.
|
com.google.protobuf.DurationOrBuilder |
getBufferFlushTimeoutOrBuilder()
The encoded request buffer is flushed N milliseconds after the first request has been
encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`.
|
RedisProxy.ConnPoolSettings |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getEnableCommandStats()
Enable per-command statistics per upstream cluster, in addition to the filter level aggregate
count.
|
boolean |
getEnableHashtagging()
Use hash tagging on every redis key to guarantee that keys with the same hash tag will be
forwarded to the same upstream.
|
boolean |
getEnableRedirection()
Accept `moved and ask redirection
<https://redis.io/topics/cluster-spec#redirection-and-resharding>`_ errors from upstream
redis servers, and retry commands to the specified target server.
|
int |
getMaxBufferSizeBeforeFlush()
Maximum size of encoded request buffer before flush is triggered and encoded requests
are sent upstream.
|
com.google.protobuf.UInt32Value |
getMaxUpstreamUnknownConnections()
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts
can be created at any given time by any given worker thread (see `enable_redirection` for
more details).
|
com.google.protobuf.UInt32Value.Builder |
getMaxUpstreamUnknownConnectionsBuilder()
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts
can be created at any given time by any given worker thread (see `enable_redirection` for
more details).
|
com.google.protobuf.UInt32ValueOrBuilder |
getMaxUpstreamUnknownConnectionsOrBuilder()
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts
can be created at any given time by any given worker thread (see `enable_redirection` for
more details).
|
com.google.protobuf.Duration |
getOpTimeout()
Per-operation timeout in milliseconds.
|
com.google.protobuf.Duration.Builder |
getOpTimeoutBuilder()
Per-operation timeout in milliseconds.
|
com.google.protobuf.DurationOrBuilder |
getOpTimeoutOrBuilder()
Per-operation timeout in milliseconds.
|
RedisProxy.ConnPoolSettings.ReadPolicy |
getReadPolicy()
Read policy.
|
int |
getReadPolicyValue()
Read policy.
|
boolean |
hasBufferFlushTimeout()
The encoded request buffer is flushed N milliseconds after the first request has been
encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`.
|
boolean |
hasMaxUpstreamUnknownConnections()
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts
can be created at any given time by any given worker thread (see `enable_redirection` for
more details).
|
boolean |
hasOpTimeout()
Per-operation timeout in milliseconds.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RedisProxy.ConnPoolSettings.Builder |
mergeBufferFlushTimeout(com.google.protobuf.Duration value)
The encoded request buffer is flushed N milliseconds after the first request has been
encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`.
|
RedisProxy.ConnPoolSettings.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RedisProxy.ConnPoolSettings.Builder |
mergeFrom(com.google.protobuf.Message other) |
RedisProxy.ConnPoolSettings.Builder |
mergeFrom(RedisProxy.ConnPoolSettings other) |
RedisProxy.ConnPoolSettings.Builder |
mergeMaxUpstreamUnknownConnections(com.google.protobuf.UInt32Value value)
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts
can be created at any given time by any given worker thread (see `enable_redirection` for
more details).
|
RedisProxy.ConnPoolSettings.Builder |
mergeOpTimeout(com.google.protobuf.Duration value)
Per-operation timeout in milliseconds.
|
RedisProxy.ConnPoolSettings.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RedisProxy.ConnPoolSettings.Builder |
setBufferFlushTimeout(com.google.protobuf.Duration.Builder builderForValue)
The encoded request buffer is flushed N milliseconds after the first request has been
encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`.
|
RedisProxy.ConnPoolSettings.Builder |
setBufferFlushTimeout(com.google.protobuf.Duration value)
The encoded request buffer is flushed N milliseconds after the first request has been
encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`.
|
RedisProxy.ConnPoolSettings.Builder |
setEnableCommandStats(boolean value)
Enable per-command statistics per upstream cluster, in addition to the filter level aggregate
count.
|
RedisProxy.ConnPoolSettings.Builder |
setEnableHashtagging(boolean value)
Use hash tagging on every redis key to guarantee that keys with the same hash tag will be
forwarded to the same upstream.
|
RedisProxy.ConnPoolSettings.Builder |
setEnableRedirection(boolean value)
Accept `moved and ask redirection
<https://redis.io/topics/cluster-spec#redirection-and-resharding>`_ errors from upstream
redis servers, and retry commands to the specified target server.
|
RedisProxy.ConnPoolSettings.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RedisProxy.ConnPoolSettings.Builder |
setMaxBufferSizeBeforeFlush(int value)
Maximum size of encoded request buffer before flush is triggered and encoded requests
are sent upstream.
|
RedisProxy.ConnPoolSettings.Builder |
setMaxUpstreamUnknownConnections(com.google.protobuf.UInt32Value.Builder builderForValue)
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts
can be created at any given time by any given worker thread (see `enable_redirection` for
more details).
|
RedisProxy.ConnPoolSettings.Builder |
setMaxUpstreamUnknownConnections(com.google.protobuf.UInt32Value value)
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts
can be created at any given time by any given worker thread (see `enable_redirection` for
more details).
|
RedisProxy.ConnPoolSettings.Builder |
setOpTimeout(com.google.protobuf.Duration.Builder builderForValue)
Per-operation timeout in milliseconds.
|
RedisProxy.ConnPoolSettings.Builder |
setOpTimeout(com.google.protobuf.Duration value)
Per-operation timeout in milliseconds.
|
RedisProxy.ConnPoolSettings.Builder |
setReadPolicy(RedisProxy.ConnPoolSettings.ReadPolicy value)
Read policy.
|
RedisProxy.ConnPoolSettings.Builder |
setReadPolicyValue(int value)
Read policy.
|
RedisProxy.ConnPoolSettings.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RedisProxy.ConnPoolSettings.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>public RedisProxy.ConnPoolSettings.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>public RedisProxy.ConnPoolSettings getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RedisProxy.ConnPoolSettings build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RedisProxy.ConnPoolSettings buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RedisProxy.ConnPoolSettings.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>public RedisProxy.ConnPoolSettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>public RedisProxy.ConnPoolSettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>public RedisProxy.ConnPoolSettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>public RedisProxy.ConnPoolSettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>public RedisProxy.ConnPoolSettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>public RedisProxy.ConnPoolSettings.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RedisProxy.ConnPoolSettings.Builder>public RedisProxy.ConnPoolSettings.Builder mergeFrom(RedisProxy.ConnPoolSettings other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>public RedisProxy.ConnPoolSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RedisProxy.ConnPoolSettings.Builder>IOExceptionpublic boolean hasOpTimeout()
Per-operation timeout in milliseconds. The timer starts when the first command of a pipeline is written to the backend connection. Each response received from Redis resets the timer since it signifies that the next command is being processed by the backend. The only exception to this behavior is when a connection to a backend is not yet established. In that case, the connect timeout on the cluster will govern the timeout until the connection is ready.
.google.protobuf.Duration op_timeout = 1 [(.validate.rules) = { ... }hasOpTimeout in interface RedisProxy.ConnPoolSettingsOrBuilderpublic com.google.protobuf.Duration getOpTimeout()
Per-operation timeout in milliseconds. The timer starts when the first command of a pipeline is written to the backend connection. Each response received from Redis resets the timer since it signifies that the next command is being processed by the backend. The only exception to this behavior is when a connection to a backend is not yet established. In that case, the connect timeout on the cluster will govern the timeout until the connection is ready.
.google.protobuf.Duration op_timeout = 1 [(.validate.rules) = { ... }getOpTimeout in interface RedisProxy.ConnPoolSettingsOrBuilderpublic RedisProxy.ConnPoolSettings.Builder setOpTimeout(com.google.protobuf.Duration value)
Per-operation timeout in milliseconds. The timer starts when the first command of a pipeline is written to the backend connection. Each response received from Redis resets the timer since it signifies that the next command is being processed by the backend. The only exception to this behavior is when a connection to a backend is not yet established. In that case, the connect timeout on the cluster will govern the timeout until the connection is ready.
.google.protobuf.Duration op_timeout = 1 [(.validate.rules) = { ... }public RedisProxy.ConnPoolSettings.Builder setOpTimeout(com.google.protobuf.Duration.Builder builderForValue)
Per-operation timeout in milliseconds. The timer starts when the first command of a pipeline is written to the backend connection. Each response received from Redis resets the timer since it signifies that the next command is being processed by the backend. The only exception to this behavior is when a connection to a backend is not yet established. In that case, the connect timeout on the cluster will govern the timeout until the connection is ready.
.google.protobuf.Duration op_timeout = 1 [(.validate.rules) = { ... }public RedisProxy.ConnPoolSettings.Builder mergeOpTimeout(com.google.protobuf.Duration value)
Per-operation timeout in milliseconds. The timer starts when the first command of a pipeline is written to the backend connection. Each response received from Redis resets the timer since it signifies that the next command is being processed by the backend. The only exception to this behavior is when a connection to a backend is not yet established. In that case, the connect timeout on the cluster will govern the timeout until the connection is ready.
.google.protobuf.Duration op_timeout = 1 [(.validate.rules) = { ... }public RedisProxy.ConnPoolSettings.Builder clearOpTimeout()
Per-operation timeout in milliseconds. The timer starts when the first command of a pipeline is written to the backend connection. Each response received from Redis resets the timer since it signifies that the next command is being processed by the backend. The only exception to this behavior is when a connection to a backend is not yet established. In that case, the connect timeout on the cluster will govern the timeout until the connection is ready.
.google.protobuf.Duration op_timeout = 1 [(.validate.rules) = { ... }public com.google.protobuf.Duration.Builder getOpTimeoutBuilder()
Per-operation timeout in milliseconds. The timer starts when the first command of a pipeline is written to the backend connection. Each response received from Redis resets the timer since it signifies that the next command is being processed by the backend. The only exception to this behavior is when a connection to a backend is not yet established. In that case, the connect timeout on the cluster will govern the timeout until the connection is ready.
.google.protobuf.Duration op_timeout = 1 [(.validate.rules) = { ... }public com.google.protobuf.DurationOrBuilder getOpTimeoutOrBuilder()
Per-operation timeout in milliseconds. The timer starts when the first command of a pipeline is written to the backend connection. Each response received from Redis resets the timer since it signifies that the next command is being processed by the backend. The only exception to this behavior is when a connection to a backend is not yet established. In that case, the connect timeout on the cluster will govern the timeout until the connection is ready.
.google.protobuf.Duration op_timeout = 1 [(.validate.rules) = { ... }getOpTimeoutOrBuilder in interface RedisProxy.ConnPoolSettingsOrBuilderpublic boolean getEnableHashtagging()
Use hash tagging on every redis key to guarantee that keys with the same hash tag will be
forwarded to the same upstream. The hash key used for determining the upstream in a
consistent hash ring configuration will be computed from the hash tagged key instead of the
whole key. The algorithm used to compute the hash tag is identical to the `redis-cluster
implementation <https://redis.io/topics/cluster-spec#keys-hash-tags>`_.
Examples:
* '{user1000}.following' and '{user1000}.followers' **will** be sent to the same upstream
* '{user1000}.following' and '{user1001}.following' **might** be sent to the same upstream
bool enable_hashtagging = 2;getEnableHashtagging in interface RedisProxy.ConnPoolSettingsOrBuilderpublic RedisProxy.ConnPoolSettings.Builder setEnableHashtagging(boolean value)
Use hash tagging on every redis key to guarantee that keys with the same hash tag will be
forwarded to the same upstream. The hash key used for determining the upstream in a
consistent hash ring configuration will be computed from the hash tagged key instead of the
whole key. The algorithm used to compute the hash tag is identical to the `redis-cluster
implementation <https://redis.io/topics/cluster-spec#keys-hash-tags>`_.
Examples:
* '{user1000}.following' and '{user1000}.followers' **will** be sent to the same upstream
* '{user1000}.following' and '{user1001}.following' **might** be sent to the same upstream
bool enable_hashtagging = 2;public RedisProxy.ConnPoolSettings.Builder clearEnableHashtagging()
Use hash tagging on every redis key to guarantee that keys with the same hash tag will be
forwarded to the same upstream. The hash key used for determining the upstream in a
consistent hash ring configuration will be computed from the hash tagged key instead of the
whole key. The algorithm used to compute the hash tag is identical to the `redis-cluster
implementation <https://redis.io/topics/cluster-spec#keys-hash-tags>`_.
Examples:
* '{user1000}.following' and '{user1000}.followers' **will** be sent to the same upstream
* '{user1000}.following' and '{user1001}.following' **might** be sent to the same upstream
bool enable_hashtagging = 2;public boolean getEnableRedirection()
Accept `moved and ask redirection <https://redis.io/topics/cluster-spec#redirection-and-resharding>`_ errors from upstream redis servers, and retry commands to the specified target server. The target server does not need to be known to the cluster manager. If the command cannot be redirected, then the original error is passed downstream unchanged. By default, this support is not enabled.
bool enable_redirection = 3;getEnableRedirection in interface RedisProxy.ConnPoolSettingsOrBuilderpublic RedisProxy.ConnPoolSettings.Builder setEnableRedirection(boolean value)
Accept `moved and ask redirection <https://redis.io/topics/cluster-spec#redirection-and-resharding>`_ errors from upstream redis servers, and retry commands to the specified target server. The target server does not need to be known to the cluster manager. If the command cannot be redirected, then the original error is passed downstream unchanged. By default, this support is not enabled.
bool enable_redirection = 3;public RedisProxy.ConnPoolSettings.Builder clearEnableRedirection()
Accept `moved and ask redirection <https://redis.io/topics/cluster-spec#redirection-and-resharding>`_ errors from upstream redis servers, and retry commands to the specified target server. The target server does not need to be known to the cluster manager. If the command cannot be redirected, then the original error is passed downstream unchanged. By default, this support is not enabled.
bool enable_redirection = 3;public int getMaxBufferSizeBeforeFlush()
Maximum size of encoded request buffer before flush is triggered and encoded requests are sent upstream. If this is unset, the buffer flushes whenever it receives data and performs no batching. This feature makes it possible for multiple clients to send requests to Envoy and have them batched- for example if one is running several worker processes, each with its own Redis connection. There is no benefit to using this with a single downstream process. Recommended size (if enabled) is 1024 bytes.
uint32 max_buffer_size_before_flush = 4;getMaxBufferSizeBeforeFlush in interface RedisProxy.ConnPoolSettingsOrBuilderpublic RedisProxy.ConnPoolSettings.Builder setMaxBufferSizeBeforeFlush(int value)
Maximum size of encoded request buffer before flush is triggered and encoded requests are sent upstream. If this is unset, the buffer flushes whenever it receives data and performs no batching. This feature makes it possible for multiple clients to send requests to Envoy and have them batched- for example if one is running several worker processes, each with its own Redis connection. There is no benefit to using this with a single downstream process. Recommended size (if enabled) is 1024 bytes.
uint32 max_buffer_size_before_flush = 4;public RedisProxy.ConnPoolSettings.Builder clearMaxBufferSizeBeforeFlush()
Maximum size of encoded request buffer before flush is triggered and encoded requests are sent upstream. If this is unset, the buffer flushes whenever it receives data and performs no batching. This feature makes it possible for multiple clients to send requests to Envoy and have them batched- for example if one is running several worker processes, each with its own Redis connection. There is no benefit to using this with a single downstream process. Recommended size (if enabled) is 1024 bytes.
uint32 max_buffer_size_before_flush = 4;public boolean hasBufferFlushTimeout()
The encoded request buffer is flushed N milliseconds after the first request has been encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`. If `max_buffer_size_before_flush` is not set, this flush timer is not used. Otherwise, the timer should be set according to the number of clients, overall request rate and desired maximum latency for a single command. For example, if there are many requests being batched together at a high rate, the buffer will likely be filled before the timer fires. Alternatively, if the request rate is lower the buffer will not be filled as often before the timer fires. If `max_buffer_size_before_flush` is set, but `buffer_flush_timeout` is not, the latter defaults to 3ms.
.google.protobuf.Duration buffer_flush_timeout = 5;hasBufferFlushTimeout in interface RedisProxy.ConnPoolSettingsOrBuilderpublic com.google.protobuf.Duration getBufferFlushTimeout()
The encoded request buffer is flushed N milliseconds after the first request has been encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`. If `max_buffer_size_before_flush` is not set, this flush timer is not used. Otherwise, the timer should be set according to the number of clients, overall request rate and desired maximum latency for a single command. For example, if there are many requests being batched together at a high rate, the buffer will likely be filled before the timer fires. Alternatively, if the request rate is lower the buffer will not be filled as often before the timer fires. If `max_buffer_size_before_flush` is set, but `buffer_flush_timeout` is not, the latter defaults to 3ms.
.google.protobuf.Duration buffer_flush_timeout = 5;getBufferFlushTimeout in interface RedisProxy.ConnPoolSettingsOrBuilderpublic RedisProxy.ConnPoolSettings.Builder setBufferFlushTimeout(com.google.protobuf.Duration value)
The encoded request buffer is flushed N milliseconds after the first request has been encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`. If `max_buffer_size_before_flush` is not set, this flush timer is not used. Otherwise, the timer should be set according to the number of clients, overall request rate and desired maximum latency for a single command. For example, if there are many requests being batched together at a high rate, the buffer will likely be filled before the timer fires. Alternatively, if the request rate is lower the buffer will not be filled as often before the timer fires. If `max_buffer_size_before_flush` is set, but `buffer_flush_timeout` is not, the latter defaults to 3ms.
.google.protobuf.Duration buffer_flush_timeout = 5;public RedisProxy.ConnPoolSettings.Builder setBufferFlushTimeout(com.google.protobuf.Duration.Builder builderForValue)
The encoded request buffer is flushed N milliseconds after the first request has been encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`. If `max_buffer_size_before_flush` is not set, this flush timer is not used. Otherwise, the timer should be set according to the number of clients, overall request rate and desired maximum latency for a single command. For example, if there are many requests being batched together at a high rate, the buffer will likely be filled before the timer fires. Alternatively, if the request rate is lower the buffer will not be filled as often before the timer fires. If `max_buffer_size_before_flush` is set, but `buffer_flush_timeout` is not, the latter defaults to 3ms.
.google.protobuf.Duration buffer_flush_timeout = 5;public RedisProxy.ConnPoolSettings.Builder mergeBufferFlushTimeout(com.google.protobuf.Duration value)
The encoded request buffer is flushed N milliseconds after the first request has been encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`. If `max_buffer_size_before_flush` is not set, this flush timer is not used. Otherwise, the timer should be set according to the number of clients, overall request rate and desired maximum latency for a single command. For example, if there are many requests being batched together at a high rate, the buffer will likely be filled before the timer fires. Alternatively, if the request rate is lower the buffer will not be filled as often before the timer fires. If `max_buffer_size_before_flush` is set, but `buffer_flush_timeout` is not, the latter defaults to 3ms.
.google.protobuf.Duration buffer_flush_timeout = 5;public RedisProxy.ConnPoolSettings.Builder clearBufferFlushTimeout()
The encoded request buffer is flushed N milliseconds after the first request has been encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`. If `max_buffer_size_before_flush` is not set, this flush timer is not used. Otherwise, the timer should be set according to the number of clients, overall request rate and desired maximum latency for a single command. For example, if there are many requests being batched together at a high rate, the buffer will likely be filled before the timer fires. Alternatively, if the request rate is lower the buffer will not be filled as often before the timer fires. If `max_buffer_size_before_flush` is set, but `buffer_flush_timeout` is not, the latter defaults to 3ms.
.google.protobuf.Duration buffer_flush_timeout = 5;public com.google.protobuf.Duration.Builder getBufferFlushTimeoutBuilder()
The encoded request buffer is flushed N milliseconds after the first request has been encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`. If `max_buffer_size_before_flush` is not set, this flush timer is not used. Otherwise, the timer should be set according to the number of clients, overall request rate and desired maximum latency for a single command. For example, if there are many requests being batched together at a high rate, the buffer will likely be filled before the timer fires. Alternatively, if the request rate is lower the buffer will not be filled as often before the timer fires. If `max_buffer_size_before_flush` is set, but `buffer_flush_timeout` is not, the latter defaults to 3ms.
.google.protobuf.Duration buffer_flush_timeout = 5;public com.google.protobuf.DurationOrBuilder getBufferFlushTimeoutOrBuilder()
The encoded request buffer is flushed N milliseconds after the first request has been encoded, unless the buffer size has already exceeded `max_buffer_size_before_flush`. If `max_buffer_size_before_flush` is not set, this flush timer is not used. Otherwise, the timer should be set according to the number of clients, overall request rate and desired maximum latency for a single command. For example, if there are many requests being batched together at a high rate, the buffer will likely be filled before the timer fires. Alternatively, if the request rate is lower the buffer will not be filled as often before the timer fires. If `max_buffer_size_before_flush` is set, but `buffer_flush_timeout` is not, the latter defaults to 3ms.
.google.protobuf.Duration buffer_flush_timeout = 5;getBufferFlushTimeoutOrBuilder in interface RedisProxy.ConnPoolSettingsOrBuilderpublic boolean hasMaxUpstreamUnknownConnections()
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts can be created at any given time by any given worker thread (see `enable_redirection` for more details). If the host is unknown and a connection cannot be created due to enforcing this limit, then redirection will fail and the original redirection error will be passed downstream unchanged. This limit defaults to 100.
.google.protobuf.UInt32Value max_upstream_unknown_connections = 6;hasMaxUpstreamUnknownConnections in interface RedisProxy.ConnPoolSettingsOrBuilderpublic com.google.protobuf.UInt32Value getMaxUpstreamUnknownConnections()
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts can be created at any given time by any given worker thread (see `enable_redirection` for more details). If the host is unknown and a connection cannot be created due to enforcing this limit, then redirection will fail and the original redirection error will be passed downstream unchanged. This limit defaults to 100.
.google.protobuf.UInt32Value max_upstream_unknown_connections = 6;getMaxUpstreamUnknownConnections in interface RedisProxy.ConnPoolSettingsOrBuilderpublic RedisProxy.ConnPoolSettings.Builder setMaxUpstreamUnknownConnections(com.google.protobuf.UInt32Value value)
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts can be created at any given time by any given worker thread (see `enable_redirection` for more details). If the host is unknown and a connection cannot be created due to enforcing this limit, then redirection will fail and the original redirection error will be passed downstream unchanged. This limit defaults to 100.
.google.protobuf.UInt32Value max_upstream_unknown_connections = 6;public RedisProxy.ConnPoolSettings.Builder setMaxUpstreamUnknownConnections(com.google.protobuf.UInt32Value.Builder builderForValue)
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts can be created at any given time by any given worker thread (see `enable_redirection` for more details). If the host is unknown and a connection cannot be created due to enforcing this limit, then redirection will fail and the original redirection error will be passed downstream unchanged. This limit defaults to 100.
.google.protobuf.UInt32Value max_upstream_unknown_connections = 6;public RedisProxy.ConnPoolSettings.Builder mergeMaxUpstreamUnknownConnections(com.google.protobuf.UInt32Value value)
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts can be created at any given time by any given worker thread (see `enable_redirection` for more details). If the host is unknown and a connection cannot be created due to enforcing this limit, then redirection will fail and the original redirection error will be passed downstream unchanged. This limit defaults to 100.
.google.protobuf.UInt32Value max_upstream_unknown_connections = 6;public RedisProxy.ConnPoolSettings.Builder clearMaxUpstreamUnknownConnections()
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts can be created at any given time by any given worker thread (see `enable_redirection` for more details). If the host is unknown and a connection cannot be created due to enforcing this limit, then redirection will fail and the original redirection error will be passed downstream unchanged. This limit defaults to 100.
.google.protobuf.UInt32Value max_upstream_unknown_connections = 6;public com.google.protobuf.UInt32Value.Builder getMaxUpstreamUnknownConnectionsBuilder()
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts can be created at any given time by any given worker thread (see `enable_redirection` for more details). If the host is unknown and a connection cannot be created due to enforcing this limit, then redirection will fail and the original redirection error will be passed downstream unchanged. This limit defaults to 100.
.google.protobuf.UInt32Value max_upstream_unknown_connections = 6;public com.google.protobuf.UInt32ValueOrBuilder getMaxUpstreamUnknownConnectionsOrBuilder()
`max_upstream_unknown_connections` controls how many upstream connections to unknown hosts can be created at any given time by any given worker thread (see `enable_redirection` for more details). If the host is unknown and a connection cannot be created due to enforcing this limit, then redirection will fail and the original redirection error will be passed downstream unchanged. This limit defaults to 100.
.google.protobuf.UInt32Value max_upstream_unknown_connections = 6;getMaxUpstreamUnknownConnectionsOrBuilder in interface RedisProxy.ConnPoolSettingsOrBuilderpublic boolean getEnableCommandStats()
Enable per-command statistics per upstream cluster, in addition to the filter level aggregate count.
bool enable_command_stats = 8;getEnableCommandStats in interface RedisProxy.ConnPoolSettingsOrBuilderpublic RedisProxy.ConnPoolSettings.Builder setEnableCommandStats(boolean value)
Enable per-command statistics per upstream cluster, in addition to the filter level aggregate count.
bool enable_command_stats = 8;public RedisProxy.ConnPoolSettings.Builder clearEnableCommandStats()
Enable per-command statistics per upstream cluster, in addition to the filter level aggregate count.
bool enable_command_stats = 8;public int getReadPolicyValue()
Read policy. The default is to read from the primary.
.envoy.config.filter.network.redis_proxy.v2.RedisProxy.ConnPoolSettings.ReadPolicy read_policy = 7 [(.validate.rules) = { ... }getReadPolicyValue in interface RedisProxy.ConnPoolSettingsOrBuilderpublic RedisProxy.ConnPoolSettings.Builder setReadPolicyValue(int value)
Read policy. The default is to read from the primary.
.envoy.config.filter.network.redis_proxy.v2.RedisProxy.ConnPoolSettings.ReadPolicy read_policy = 7 [(.validate.rules) = { ... }public RedisProxy.ConnPoolSettings.ReadPolicy getReadPolicy()
Read policy. The default is to read from the primary.
.envoy.config.filter.network.redis_proxy.v2.RedisProxy.ConnPoolSettings.ReadPolicy read_policy = 7 [(.validate.rules) = { ... }getReadPolicy in interface RedisProxy.ConnPoolSettingsOrBuilderpublic RedisProxy.ConnPoolSettings.Builder setReadPolicy(RedisProxy.ConnPoolSettings.ReadPolicy value)
Read policy. The default is to read from the primary.
.envoy.config.filter.network.redis_proxy.v2.RedisProxy.ConnPoolSettings.ReadPolicy read_policy = 7 [(.validate.rules) = { ... }public RedisProxy.ConnPoolSettings.Builder clearReadPolicy()
Read policy. The default is to read from the primary.
.envoy.config.filter.network.redis_proxy.v2.RedisProxy.ConnPoolSettings.ReadPolicy read_policy = 7 [(.validate.rules) = { ... }public final RedisProxy.ConnPoolSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>public final RedisProxy.ConnPoolSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.