Class RedisProxy.ConnPoolSettings.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>
-
- io.envoyproxy.envoy.config.filter.network.redis_proxy.v2.RedisProxy.ConnPoolSettings.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RedisProxy.ConnPoolSettingsOrBuilder,Cloneable
- Enclosing class:
- RedisProxy.ConnPoolSettings
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 typeenvoy.config.filter.network.redis_proxy.v2.RedisProxy.ConnPoolSettings
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RedisProxy.ConnPoolSettings.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RedisProxy.ConnPoolSettingsbuild()RedisProxy.ConnPoolSettingsbuildPartial()RedisProxy.ConnPoolSettings.Builderclear()RedisProxy.ConnPoolSettings.BuilderclearBufferFlushTimeout()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.BuilderclearEnableCommandStats()Enable per-command statistics per upstream cluster, in addition to the filter level aggregate count.RedisProxy.ConnPoolSettings.BuilderclearEnableHashtagging()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.BuilderclearEnableRedirection()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.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RedisProxy.ConnPoolSettings.BuilderclearMaxBufferSizeBeforeFlush()Maximum size of encoded request buffer before flush is triggered and encoded requests are sent upstream.RedisProxy.ConnPoolSettings.BuilderclearMaxUpstreamUnknownConnections()`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.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RedisProxy.ConnPoolSettings.BuilderclearOpTimeout()Per-operation timeout in milliseconds.RedisProxy.ConnPoolSettings.BuilderclearReadPolicy()Read policy.RedisProxy.ConnPoolSettings.Builderclone()com.google.protobuf.DurationgetBufferFlushTimeout()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.BuildergetBufferFlushTimeoutBuilder()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.DurationOrBuildergetBufferFlushTimeoutOrBuilder()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.ConnPoolSettingsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetEnableCommandStats()Enable per-command statistics per upstream cluster, in addition to the filter level aggregate count.booleangetEnableHashtagging()Use hash tagging on every redis key to guarantee that keys with the same hash tag will be forwarded to the same upstream.booleangetEnableRedirection()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.intgetMaxBufferSizeBeforeFlush()Maximum size of encoded request buffer before flush is triggered and encoded requests are sent upstream.com.google.protobuf.UInt32ValuegetMaxUpstreamUnknownConnections()`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.BuildergetMaxUpstreamUnknownConnectionsBuilder()`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.UInt32ValueOrBuildergetMaxUpstreamUnknownConnectionsOrBuilder()`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.DurationgetOpTimeout()Per-operation timeout in milliseconds.com.google.protobuf.Duration.BuildergetOpTimeoutBuilder()Per-operation timeout in milliseconds.com.google.protobuf.DurationOrBuildergetOpTimeoutOrBuilder()Per-operation timeout in milliseconds.RedisProxy.ConnPoolSettings.ReadPolicygetReadPolicy()Read policy.intgetReadPolicyValue()Read policy.booleanhasBufferFlushTimeout()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`.booleanhasMaxUpstreamUnknownConnections()`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).booleanhasOpTimeout()Per-operation timeout in milliseconds.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RedisProxy.ConnPoolSettings.BuildermergeBufferFlushTimeout(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.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RedisProxy.ConnPoolSettings.BuildermergeFrom(com.google.protobuf.Message other)RedisProxy.ConnPoolSettings.BuildermergeFrom(RedisProxy.ConnPoolSettings other)RedisProxy.ConnPoolSettings.BuildermergeMaxUpstreamUnknownConnections(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.BuildermergeOpTimeout(com.google.protobuf.Duration value)Per-operation timeout in milliseconds.RedisProxy.ConnPoolSettings.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RedisProxy.ConnPoolSettings.BuildersetBufferFlushTimeout(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.BuildersetBufferFlushTimeout(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.BuildersetEnableCommandStats(boolean value)Enable per-command statistics per upstream cluster, in addition to the filter level aggregate count.RedisProxy.ConnPoolSettings.BuildersetEnableHashtagging(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.BuildersetEnableRedirection(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.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RedisProxy.ConnPoolSettings.BuildersetMaxBufferSizeBeforeFlush(int value)Maximum size of encoded request buffer before flush is triggered and encoded requests are sent upstream.RedisProxy.ConnPoolSettings.BuildersetMaxUpstreamUnknownConnections(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.BuildersetMaxUpstreamUnknownConnections(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.BuildersetOpTimeout(com.google.protobuf.Duration value)Per-operation timeout in milliseconds.RedisProxy.ConnPoolSettings.BuildersetOpTimeout(com.google.protobuf.Duration.Builder builderForValue)Per-operation timeout in milliseconds.RedisProxy.ConnPoolSettings.BuildersetReadPolicy(RedisProxy.ConnPoolSettings.ReadPolicy value)Read policy.RedisProxy.ConnPoolSettings.BuildersetReadPolicyValue(int value)Read policy.RedisProxy.ConnPoolSettings.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RedisProxy.ConnPoolSettings.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>
-
clear
public RedisProxy.ConnPoolSettings.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>
-
getDefaultInstanceForType
public RedisProxy.ConnPoolSettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RedisProxy.ConnPoolSettings build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RedisProxy.ConnPoolSettings buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RedisProxy.ConnPoolSettings.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>
-
setField
public RedisProxy.ConnPoolSettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>
-
clearField
public RedisProxy.ConnPoolSettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>
-
clearOneof
public RedisProxy.ConnPoolSettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>
-
setRepeatedField
public RedisProxy.ConnPoolSettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>
-
addRepeatedField
public RedisProxy.ConnPoolSettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>
-
mergeFrom
public RedisProxy.ConnPoolSettings.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RedisProxy.ConnPoolSettings.Builder>
-
mergeFrom
public RedisProxy.ConnPoolSettings.Builder mergeFrom(RedisProxy.ConnPoolSettings other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>
-
mergeFrom
public RedisProxy.ConnPoolSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RedisProxy.ConnPoolSettings.Builder>- Throws:
IOException
-
hasOpTimeout
public 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) = { ... }- Specified by:
hasOpTimeoutin interfaceRedisProxy.ConnPoolSettingsOrBuilder- Returns:
- Whether the opTimeout field is set.
-
getOpTimeout
public 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) = { ... }- Specified by:
getOpTimeoutin interfaceRedisProxy.ConnPoolSettingsOrBuilder- Returns:
- The opTimeout.
-
setOpTimeout
public 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) = { ... }
-
setOpTimeout
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) = { ... }
-
mergeOpTimeout
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) = { ... }
-
clearOpTimeout
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) = { ... }
-
getOpTimeoutBuilder
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) = { ... }
-
getOpTimeoutOrBuilder
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) = { ... }- Specified by:
getOpTimeoutOrBuilderin interfaceRedisProxy.ConnPoolSettingsOrBuilder
-
getEnableHashtagging
public 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 upstreambool enable_hashtagging = 2;- Specified by:
getEnableHashtaggingin interfaceRedisProxy.ConnPoolSettingsOrBuilder- Returns:
- The enableHashtagging.
-
setEnableHashtagging
public 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 upstreambool enable_hashtagging = 2;- Parameters:
value- The enableHashtagging to set.- Returns:
- This builder for chaining.
-
clearEnableHashtagging
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 upstreambool enable_hashtagging = 2;- Returns:
- This builder for chaining.
-
getEnableRedirection
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;- Specified by:
getEnableRedirectionin interfaceRedisProxy.ConnPoolSettingsOrBuilder- Returns:
- The enableRedirection.
-
setEnableRedirection
public 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;- Parameters:
value- The enableRedirection to set.- Returns:
- This builder for chaining.
-
clearEnableRedirection
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;- Returns:
- This builder for chaining.
-
getMaxBufferSizeBeforeFlush
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;- Specified by:
getMaxBufferSizeBeforeFlushin interfaceRedisProxy.ConnPoolSettingsOrBuilder- Returns:
- The maxBufferSizeBeforeFlush.
-
setMaxBufferSizeBeforeFlush
public 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;- Parameters:
value- The maxBufferSizeBeforeFlush to set.- Returns:
- This builder for chaining.
-
clearMaxBufferSizeBeforeFlush
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;- Returns:
- This builder for chaining.
-
hasBufferFlushTimeout
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;- Specified by:
hasBufferFlushTimeoutin interfaceRedisProxy.ConnPoolSettingsOrBuilder- Returns:
- Whether the bufferFlushTimeout field is set.
-
getBufferFlushTimeout
public 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;- Specified by:
getBufferFlushTimeoutin interfaceRedisProxy.ConnPoolSettingsOrBuilder- Returns:
- The bufferFlushTimeout.
-
setBufferFlushTimeout
public 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;
-
setBufferFlushTimeout
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;
-
mergeBufferFlushTimeout
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;
-
clearBufferFlushTimeout
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;
-
getBufferFlushTimeoutBuilder
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;
-
getBufferFlushTimeoutOrBuilder
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;- Specified by:
getBufferFlushTimeoutOrBuilderin interfaceRedisProxy.ConnPoolSettingsOrBuilder
-
hasMaxUpstreamUnknownConnections
public 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;- Specified by:
hasMaxUpstreamUnknownConnectionsin interfaceRedisProxy.ConnPoolSettingsOrBuilder- Returns:
- Whether the maxUpstreamUnknownConnections field is set.
-
getMaxUpstreamUnknownConnections
public 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;- Specified by:
getMaxUpstreamUnknownConnectionsin interfaceRedisProxy.ConnPoolSettingsOrBuilder- Returns:
- The maxUpstreamUnknownConnections.
-
setMaxUpstreamUnknownConnections
public 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;
-
setMaxUpstreamUnknownConnections
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;
-
mergeMaxUpstreamUnknownConnections
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;
-
clearMaxUpstreamUnknownConnections
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;
-
getMaxUpstreamUnknownConnectionsBuilder
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;
-
getMaxUpstreamUnknownConnectionsOrBuilder
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;- Specified by:
getMaxUpstreamUnknownConnectionsOrBuilderin interfaceRedisProxy.ConnPoolSettingsOrBuilder
-
getEnableCommandStats
public boolean getEnableCommandStats()
Enable per-command statistics per upstream cluster, in addition to the filter level aggregate count.
bool enable_command_stats = 8;- Specified by:
getEnableCommandStatsin interfaceRedisProxy.ConnPoolSettingsOrBuilder- Returns:
- The enableCommandStats.
-
setEnableCommandStats
public 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;- Parameters:
value- The enableCommandStats to set.- Returns:
- This builder for chaining.
-
clearEnableCommandStats
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;- Returns:
- This builder for chaining.
-
getReadPolicyValue
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) = { ... }- Specified by:
getReadPolicyValuein interfaceRedisProxy.ConnPoolSettingsOrBuilder- Returns:
- The enum numeric value on the wire for readPolicy.
-
setReadPolicyValue
public 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) = { ... }- Parameters:
value- The enum numeric value on the wire for readPolicy to set.- Returns:
- This builder for chaining.
-
getReadPolicy
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) = { ... }- Specified by:
getReadPolicyin interfaceRedisProxy.ConnPoolSettingsOrBuilder- Returns:
- The readPolicy.
-
setReadPolicy
public 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) = { ... }- Parameters:
value- The readPolicy to set.- Returns:
- This builder for chaining.
-
clearReadPolicy
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) = { ... }- Returns:
- This builder for chaining.
-
setUnknownFields
public final RedisProxy.ConnPoolSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>
-
mergeUnknownFields
public final RedisProxy.ConnPoolSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.ConnPoolSettings.Builder>
-
-