public static final class RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder> implements RedisProxy.PrefixRoutes.Route.RequestMirrorPolicyOrBuilder
The router is capable of shadowing traffic from one cluster to another. The current implementation is "fire and forget," meaning Envoy will not wait for the shadow cluster to respond before returning the response from the primary cluster. All normal statistics are collected for the shadow cluster making this feature useful for testing.Protobuf type
envoy.config.filter.network.redis_proxy.v2.RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy| Modifier and Type | Method and Description |
|---|---|
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy |
build() |
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy |
buildPartial() |
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
clear() |
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
clearCluster()
Specifies the cluster that requests will be mirrored to.
|
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
clearExcludeReadCommands()
Set this to TRUE to only mirror write commands, this is effectively replicating the
writes in a "fire and forget" manner.
|
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
clearRuntimeFraction()
If not specified or the runtime key is not present, all requests to the target cluster
will be mirrored.
|
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
clone() |
String |
getCluster()
Specifies the cluster that requests will be mirrored to.
|
com.google.protobuf.ByteString |
getClusterBytes()
Specifies the cluster that requests will be mirrored to.
|
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getExcludeReadCommands()
Set this to TRUE to only mirror write commands, this is effectively replicating the
writes in a "fire and forget" manner.
|
RuntimeFractionalPercent |
getRuntimeFraction()
If not specified or the runtime key is not present, all requests to the target cluster
will be mirrored.
|
RuntimeFractionalPercent.Builder |
getRuntimeFractionBuilder()
If not specified or the runtime key is not present, all requests to the target cluster
will be mirrored.
|
RuntimeFractionalPercentOrBuilder |
getRuntimeFractionOrBuilder()
If not specified or the runtime key is not present, all requests to the target cluster
will be mirrored.
|
boolean |
hasRuntimeFraction()
If not specified or the runtime key is not present, all requests to the target cluster
will be mirrored.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
mergeFrom(RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy other) |
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
mergeRuntimeFraction(RuntimeFractionalPercent value)
If not specified or the runtime key is not present, all requests to the target cluster
will be mirrored.
|
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
setCluster(String value)
Specifies the cluster that requests will be mirrored to.
|
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
setClusterBytes(com.google.protobuf.ByteString value)
Specifies the cluster that requests will be mirrored to.
|
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
setExcludeReadCommands(boolean value)
Set this to TRUE to only mirror write commands, this is effectively replicating the
writes in a "fire and forget" manner.
|
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
setRuntimeFraction(RuntimeFractionalPercent.Builder builderForValue)
If not specified or the runtime key is not present, all requests to the target cluster
will be mirrored.
|
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder |
setRuntimeFraction(RuntimeFractionalPercent value)
If not specified or the runtime key is not present, all requests to the target cluster
will be mirrored.
|
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.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.PrefixRoutes.Route.RequestMirrorPolicy.Builder>public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.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.PrefixRoutes.Route.RequestMirrorPolicy.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.PrefixRoutes.Route.RequestMirrorPolicy.Builder>public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.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.PrefixRoutes.Route.RequestMirrorPolicy.Builder>public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.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.PrefixRoutes.Route.RequestMirrorPolicy.Builder>public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder>public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder>public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.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.PrefixRoutes.Route.RequestMirrorPolicy.Builder>public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.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.PrefixRoutes.Route.RequestMirrorPolicy.Builder>public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder>public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder mergeFrom(RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder>public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.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.PrefixRoutes.Route.RequestMirrorPolicy.Builder>IOExceptionpublic String getCluster()
Specifies the cluster that requests will be mirrored to. The cluster must exist in the cluster manager configuration.
string cluster = 1 [(.validate.rules) = { ... }getCluster in interface RedisProxy.PrefixRoutes.Route.RequestMirrorPolicyOrBuilderpublic com.google.protobuf.ByteString getClusterBytes()
Specifies the cluster that requests will be mirrored to. The cluster must exist in the cluster manager configuration.
string cluster = 1 [(.validate.rules) = { ... }getClusterBytes in interface RedisProxy.PrefixRoutes.Route.RequestMirrorPolicyOrBuilderpublic RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder setCluster(String value)
Specifies the cluster that requests will be mirrored to. The cluster must exist in the cluster manager configuration.
string cluster = 1 [(.validate.rules) = { ... }public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder clearCluster()
Specifies the cluster that requests will be mirrored to. The cluster must exist in the cluster manager configuration.
string cluster = 1 [(.validate.rules) = { ... }public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder setClusterBytes(com.google.protobuf.ByteString value)
Specifies the cluster that requests will be mirrored to. The cluster must exist in the cluster manager configuration.
string cluster = 1 [(.validate.rules) = { ... }public boolean hasRuntimeFraction()
If not specified or the runtime key is not present, all requests to the target cluster will be mirrored. If specified, Envoy will lookup the runtime key to get the percentage of requests to the mirror.
.envoy.api.v2.core.RuntimeFractionalPercent runtime_fraction = 2;hasRuntimeFraction in interface RedisProxy.PrefixRoutes.Route.RequestMirrorPolicyOrBuilderpublic RuntimeFractionalPercent getRuntimeFraction()
If not specified or the runtime key is not present, all requests to the target cluster will be mirrored. If specified, Envoy will lookup the runtime key to get the percentage of requests to the mirror.
.envoy.api.v2.core.RuntimeFractionalPercent runtime_fraction = 2;getRuntimeFraction in interface RedisProxy.PrefixRoutes.Route.RequestMirrorPolicyOrBuilderpublic RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder setRuntimeFraction(RuntimeFractionalPercent value)
If not specified or the runtime key is not present, all requests to the target cluster will be mirrored. If specified, Envoy will lookup the runtime key to get the percentage of requests to the mirror.
.envoy.api.v2.core.RuntimeFractionalPercent runtime_fraction = 2;public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder setRuntimeFraction(RuntimeFractionalPercent.Builder builderForValue)
If not specified or the runtime key is not present, all requests to the target cluster will be mirrored. If specified, Envoy will lookup the runtime key to get the percentage of requests to the mirror.
.envoy.api.v2.core.RuntimeFractionalPercent runtime_fraction = 2;public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder mergeRuntimeFraction(RuntimeFractionalPercent value)
If not specified or the runtime key is not present, all requests to the target cluster will be mirrored. If specified, Envoy will lookup the runtime key to get the percentage of requests to the mirror.
.envoy.api.v2.core.RuntimeFractionalPercent runtime_fraction = 2;public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder clearRuntimeFraction()
If not specified or the runtime key is not present, all requests to the target cluster will be mirrored. If specified, Envoy will lookup the runtime key to get the percentage of requests to the mirror.
.envoy.api.v2.core.RuntimeFractionalPercent runtime_fraction = 2;public RuntimeFractionalPercent.Builder getRuntimeFractionBuilder()
If not specified or the runtime key is not present, all requests to the target cluster will be mirrored. If specified, Envoy will lookup the runtime key to get the percentage of requests to the mirror.
.envoy.api.v2.core.RuntimeFractionalPercent runtime_fraction = 2;public RuntimeFractionalPercentOrBuilder getRuntimeFractionOrBuilder()
If not specified or the runtime key is not present, all requests to the target cluster will be mirrored. If specified, Envoy will lookup the runtime key to get the percentage of requests to the mirror.
.envoy.api.v2.core.RuntimeFractionalPercent runtime_fraction = 2;getRuntimeFractionOrBuilder in interface RedisProxy.PrefixRoutes.Route.RequestMirrorPolicyOrBuilderpublic boolean getExcludeReadCommands()
Set this to TRUE to only mirror write commands, this is effectively replicating the writes in a "fire and forget" manner.
bool exclude_read_commands = 3;getExcludeReadCommands in interface RedisProxy.PrefixRoutes.Route.RequestMirrorPolicyOrBuilderpublic RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder setExcludeReadCommands(boolean value)
Set this to TRUE to only mirror write commands, this is effectively replicating the writes in a "fire and forget" manner.
bool exclude_read_commands = 3;public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder clearExcludeReadCommands()
Set this to TRUE to only mirror write commands, this is effectively replicating the writes in a "fire and forget" manner.
bool exclude_read_commands = 3;public final RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder>public final RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.