Interface RedisProxy.PrefixRoutes.Route.RequestMirrorPolicyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy, RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder
Enclosing class:
RedisProxy.PrefixRoutes.Route

public static interface RedisProxy.PrefixRoutes.Route.RequestMirrorPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Specifies the cluster that requests will be mirrored to.
    com.google.protobuf.ByteString
    Specifies the cluster that requests will be mirrored to.
    boolean
    Set this to TRUE to only mirror write commands, this is effectively replicating the writes in a "fire and forget" manner.
    If not specified or the runtime key is not present, all requests to the target cluster will be mirrored.
    If not specified or the runtime key is not present, all requests to the target cluster will be mirrored.
    boolean
    If not specified or the runtime key is not present, all requests to the target cluster will be mirrored.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getCluster

      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) = { ... }
      Returns:
      The cluster.
    • getClusterBytes

      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) = { ... }
      Returns:
      The bytes for cluster.
    • hasRuntimeFraction

      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;
      Returns:
      Whether the runtimeFraction field is set.
    • getRuntimeFraction

      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;
      Returns:
      The runtimeFraction.
    • getRuntimeFractionOrBuilder

      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;
    • getExcludeReadCommands

      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;
      Returns:
      The excludeReadCommands.