Class RingHash
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- io.envoyproxy.envoy.extensions.load_balancing_policies.ring_hash.v3.RingHash
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,RingHashOrBuilder
,java.io.Serializable
public final class RingHash extends com.google.protobuf.GeneratedMessage implements RingHashOrBuilder
This configuration allows the built-in RING_HASH LB policy to be configured via the LB policy extension point. See the :ref:`load balancing architecture overview <arch_overview_load_balancing_types>` for more information. [#next-free-field: 8]
Protobuf typeenvoy.extensions.load_balancing_policies.ring_hash.v3.RingHash
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RingHash.Builder
This configuration allows the built-in RING_HASH LB policy to be configured via the LB policy extension point.static class
RingHash.HashFunction
The hash function used to hash hosts onto the ketama ring.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
static int
CONSISTENT_HASHING_LB_CONFIG_FIELD_NUMBER
private ConsistentHashingLbConfig
consistentHashingLbConfig_
private static RingHash
DEFAULT_INSTANCE
static int
HASH_BALANCE_FACTOR_FIELD_NUMBER
static int
HASH_FUNCTION_FIELD_NUMBER
private com.google.protobuf.UInt32Value
hashBalanceFactor_
private int
hashFunction_
static int
LOCALITY_WEIGHTED_LB_CONFIG_FIELD_NUMBER
private LocalityLbConfig.LocalityWeightedLbConfig
localityWeightedLbConfig_
static int
MAXIMUM_RING_SIZE_FIELD_NUMBER
private com.google.protobuf.UInt64Value
maximumRingSize_
private byte
memoizedIsInitialized
static int
MINIMUM_RING_SIZE_FIELD_NUMBER
private com.google.protobuf.UInt64Value
minimumRingSize_
private static com.google.protobuf.Parser<RingHash>
PARSER
private static long
serialVersionUID
static int
USE_HOSTNAME_FOR_HASHING_FIELD_NUMBER
private boolean
useHostnameForHashing_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
ConsistentHashingLbConfig
getConsistentHashingLbConfig()
Common configuration for hashing-based load balancing policies.ConsistentHashingLbConfigOrBuilder
getConsistentHashingLbConfigOrBuilder()
Common configuration for hashing-based load balancing policies.static RingHash
getDefaultInstance()
RingHash
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.UInt32Value
getHashBalanceFactor()
Deprecated.envoy.extensions.load_balancing_policies.ring_hash.v3.RingHash.hash_balance_factor is deprecated.com.google.protobuf.UInt32ValueOrBuilder
getHashBalanceFactorOrBuilder()
Deprecated.RingHash.HashFunction
getHashFunction()
The hash function used to hash hosts onto the ketama ring.int
getHashFunctionValue()
The hash function used to hash hosts onto the ketama ring.LocalityLbConfig.LocalityWeightedLbConfig
getLocalityWeightedLbConfig()
Enable locality weighted load balancing for ring hash lb explicitly.LocalityLbConfig.LocalityWeightedLbConfigOrBuilder
getLocalityWeightedLbConfigOrBuilder()
Enable locality weighted load balancing for ring hash lb explicitly.com.google.protobuf.UInt64Value
getMaximumRingSize()
Maximum hash ring size.com.google.protobuf.UInt64ValueOrBuilder
getMaximumRingSizeOrBuilder()
Maximum hash ring size.com.google.protobuf.UInt64Value
getMinimumRingSize()
Minimum hash ring size.com.google.protobuf.UInt64ValueOrBuilder
getMinimumRingSizeOrBuilder()
Minimum hash ring size.com.google.protobuf.Parser<RingHash>
getParserForType()
int
getSerializedSize()
boolean
getUseHostnameForHashing()
Deprecated.envoy.extensions.load_balancing_policies.ring_hash.v3.RingHash.use_hostname_for_hashing is deprecated.boolean
hasConsistentHashingLbConfig()
Common configuration for hashing-based load balancing policies.boolean
hasHashBalanceFactor()
Deprecated.envoy.extensions.load_balancing_policies.ring_hash.v3.RingHash.hash_balance_factor is deprecated.int
hashCode()
boolean
hasLocalityWeightedLbConfig()
Enable locality weighted load balancing for ring hash lb explicitly.boolean
hasMaximumRingSize()
Maximum hash ring size.boolean
hasMinimumRingSize()
Minimum hash ring size.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static RingHash.Builder
newBuilder()
static RingHash.Builder
newBuilder(RingHash prototype)
RingHash.Builder
newBuilderForType()
protected RingHash.Builder
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
static RingHash
parseDelimitedFrom(java.io.InputStream input)
static RingHash
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RingHash
parseFrom(byte[] data)
static RingHash
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RingHash
parseFrom(com.google.protobuf.ByteString data)
static RingHash
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RingHash
parseFrom(com.google.protobuf.CodedInputStream input)
static RingHash
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RingHash
parseFrom(java.io.InputStream input)
static RingHash
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RingHash
parseFrom(java.nio.ByteBuffer data)
static RingHash
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<RingHash>
parser()
RingHash.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
HASH_FUNCTION_FIELD_NUMBER
public static final int HASH_FUNCTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
hashFunction_
private int hashFunction_
-
MINIMUM_RING_SIZE_FIELD_NUMBER
public static final int MINIMUM_RING_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
minimumRingSize_
private com.google.protobuf.UInt64Value minimumRingSize_
-
MAXIMUM_RING_SIZE_FIELD_NUMBER
public static final int MAXIMUM_RING_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
maximumRingSize_
private com.google.protobuf.UInt64Value maximumRingSize_
-
USE_HOSTNAME_FOR_HASHING_FIELD_NUMBER
public static final int USE_HOSTNAME_FOR_HASHING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
useHostnameForHashing_
private boolean useHostnameForHashing_
-
HASH_BALANCE_FACTOR_FIELD_NUMBER
public static final int HASH_BALANCE_FACTOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
hashBalanceFactor_
private com.google.protobuf.UInt32Value hashBalanceFactor_
-
CONSISTENT_HASHING_LB_CONFIG_FIELD_NUMBER
public static final int CONSISTENT_HASHING_LB_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
consistentHashingLbConfig_
private ConsistentHashingLbConfig consistentHashingLbConfig_
-
LOCALITY_WEIGHTED_LB_CONFIG_FIELD_NUMBER
public static final int LOCALITY_WEIGHTED_LB_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
localityWeightedLbConfig_
private LocalityLbConfig.LocalityWeightedLbConfig localityWeightedLbConfig_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final RingHash DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<RingHash> PARSER
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
getHashFunctionValue
public int getHashFunctionValue()
The hash function used to hash hosts onto the ketama ring. The value defaults to :ref:`XX_HASH<envoy_v3_api_enum_value_config.cluster.v3.Cluster.RingHashLbConfig.HashFunction.XX_HASH>`.
.envoy.extensions.load_balancing_policies.ring_hash.v3.RingHash.HashFunction hash_function = 1 [(.validate.rules) = { ... }
- Specified by:
getHashFunctionValue
in interfaceRingHashOrBuilder
- Returns:
- The enum numeric value on the wire for hashFunction.
-
getHashFunction
public RingHash.HashFunction getHashFunction()
The hash function used to hash hosts onto the ketama ring. The value defaults to :ref:`XX_HASH<envoy_v3_api_enum_value_config.cluster.v3.Cluster.RingHashLbConfig.HashFunction.XX_HASH>`.
.envoy.extensions.load_balancing_policies.ring_hash.v3.RingHash.HashFunction hash_function = 1 [(.validate.rules) = { ... }
- Specified by:
getHashFunction
in interfaceRingHashOrBuilder
- Returns:
- The hashFunction.
-
hasMinimumRingSize
public boolean hasMinimumRingSize()
Minimum hash ring size. The larger the ring is (that is, the more hashes there are for each provided host) the better the request distribution will reflect the desired weights. Defaults to 1024 entries, and limited to 8M entries. See also :ref:`maximum_ring_size<envoy_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.maximum_ring_size>`.
.google.protobuf.UInt64Value minimum_ring_size = 2 [(.validate.rules) = { ... }
- Specified by:
hasMinimumRingSize
in interfaceRingHashOrBuilder
- Returns:
- Whether the minimumRingSize field is set.
-
getMinimumRingSize
public com.google.protobuf.UInt64Value getMinimumRingSize()
Minimum hash ring size. The larger the ring is (that is, the more hashes there are for each provided host) the better the request distribution will reflect the desired weights. Defaults to 1024 entries, and limited to 8M entries. See also :ref:`maximum_ring_size<envoy_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.maximum_ring_size>`.
.google.protobuf.UInt64Value minimum_ring_size = 2 [(.validate.rules) = { ... }
- Specified by:
getMinimumRingSize
in interfaceRingHashOrBuilder
- Returns:
- The minimumRingSize.
-
getMinimumRingSizeOrBuilder
public com.google.protobuf.UInt64ValueOrBuilder getMinimumRingSizeOrBuilder()
Minimum hash ring size. The larger the ring is (that is, the more hashes there are for each provided host) the better the request distribution will reflect the desired weights. Defaults to 1024 entries, and limited to 8M entries. See also :ref:`maximum_ring_size<envoy_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.maximum_ring_size>`.
.google.protobuf.UInt64Value minimum_ring_size = 2 [(.validate.rules) = { ... }
- Specified by:
getMinimumRingSizeOrBuilder
in interfaceRingHashOrBuilder
-
hasMaximumRingSize
public boolean hasMaximumRingSize()
Maximum hash ring size. Defaults to 8M entries, and limited to 8M entries, but can be lowered to further constrain resource use. See also :ref:`minimum_ring_size<envoy_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.minimum_ring_size>`.
.google.protobuf.UInt64Value maximum_ring_size = 3 [(.validate.rules) = { ... }
- Specified by:
hasMaximumRingSize
in interfaceRingHashOrBuilder
- Returns:
- Whether the maximumRingSize field is set.
-
getMaximumRingSize
public com.google.protobuf.UInt64Value getMaximumRingSize()
Maximum hash ring size. Defaults to 8M entries, and limited to 8M entries, but can be lowered to further constrain resource use. See also :ref:`minimum_ring_size<envoy_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.minimum_ring_size>`.
.google.protobuf.UInt64Value maximum_ring_size = 3 [(.validate.rules) = { ... }
- Specified by:
getMaximumRingSize
in interfaceRingHashOrBuilder
- Returns:
- The maximumRingSize.
-
getMaximumRingSizeOrBuilder
public com.google.protobuf.UInt64ValueOrBuilder getMaximumRingSizeOrBuilder()
Maximum hash ring size. Defaults to 8M entries, and limited to 8M entries, but can be lowered to further constrain resource use. See also :ref:`minimum_ring_size<envoy_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.minimum_ring_size>`.
.google.protobuf.UInt64Value maximum_ring_size = 3 [(.validate.rules) = { ... }
- Specified by:
getMaximumRingSizeOrBuilder
in interfaceRingHashOrBuilder
-
getUseHostnameForHashing
@Deprecated public boolean getUseHostnameForHashing()
Deprecated.envoy.extensions.load_balancing_policies.ring_hash.v3.RingHash.use_hostname_for_hashing is deprecated. See envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.proto;l=62If set to ``true``, the cluster will use hostname instead of the resolved address as the key to consistently hash to an upstream host. Only valid for StrictDNS clusters with hostnames which resolve to a single IP address. .. note:: This is deprecated and please use :ref:`consistent_hashing_lb_config <envoy_v3_api_field_extensions.load_balancing_policies.ring_hash.v3.RingHash.consistent_hashing_lb_config>` instead.
bool use_hostname_for_hashing = 4 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
- Specified by:
getUseHostnameForHashing
in interfaceRingHashOrBuilder
- Returns:
- The useHostnameForHashing.
-
hasHashBalanceFactor
@Deprecated public boolean hasHashBalanceFactor()
Deprecated.envoy.extensions.load_balancing_policies.ring_hash.v3.RingHash.hash_balance_factor is deprecated. See envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.proto;l=85Configures percentage of average cluster load to bound per upstream host. For example, with a value of 150 no upstream host will get a load more than 1.5 times the average load of all the hosts in the cluster. If not specified, the load is not bounded for any upstream host. Typical value for this parameter is between 120 and 200. Minimum is 100. This is implemented based on the method described in the paper https://arxiv.org/abs/1608.01350. For the specified ``hash_balance_factor``, requests to any upstream host are capped at ``hash_balance_factor/100`` times the average number of requests across the cluster. When a request arrives for an upstream host that is currently serving at its max capacity, linear probing is used to identify an eligible host. Further, the linear probe is implemented using a random jump in hosts ring/table to identify the eligible host (this technique is as described in the paper https://arxiv.org/abs/1908.08762 - the random jump avoids the cascading overflow effect when choosing the next host in the ring/table). If weights are specified on the hosts, they are respected. This is an O(N) algorithm, unlike other load balancers. Using a lower ``hash_balance_factor`` results in more hosts being probed, so use a higher value if you require better performance. .. note:: This is deprecated and please use :ref:`consistent_hashing_lb_config <envoy_v3_api_field_extensions.load_balancing_policies.ring_hash.v3.RingHash.consistent_hashing_lb_config>` instead.
.google.protobuf.UInt32Value hash_balance_factor = 5 [deprecated = true, (.validate.rules) = { ... }
- Specified by:
hasHashBalanceFactor
in interfaceRingHashOrBuilder
- Returns:
- Whether the hashBalanceFactor field is set.
-
getHashBalanceFactor
@Deprecated public com.google.protobuf.UInt32Value getHashBalanceFactor()
Deprecated.envoy.extensions.load_balancing_policies.ring_hash.v3.RingHash.hash_balance_factor is deprecated. See envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.proto;l=85Configures percentage of average cluster load to bound per upstream host. For example, with a value of 150 no upstream host will get a load more than 1.5 times the average load of all the hosts in the cluster. If not specified, the load is not bounded for any upstream host. Typical value for this parameter is between 120 and 200. Minimum is 100. This is implemented based on the method described in the paper https://arxiv.org/abs/1608.01350. For the specified ``hash_balance_factor``, requests to any upstream host are capped at ``hash_balance_factor/100`` times the average number of requests across the cluster. When a request arrives for an upstream host that is currently serving at its max capacity, linear probing is used to identify an eligible host. Further, the linear probe is implemented using a random jump in hosts ring/table to identify the eligible host (this technique is as described in the paper https://arxiv.org/abs/1908.08762 - the random jump avoids the cascading overflow effect when choosing the next host in the ring/table). If weights are specified on the hosts, they are respected. This is an O(N) algorithm, unlike other load balancers. Using a lower ``hash_balance_factor`` results in more hosts being probed, so use a higher value if you require better performance. .. note:: This is deprecated and please use :ref:`consistent_hashing_lb_config <envoy_v3_api_field_extensions.load_balancing_policies.ring_hash.v3.RingHash.consistent_hashing_lb_config>` instead.
.google.protobuf.UInt32Value hash_balance_factor = 5 [deprecated = true, (.validate.rules) = { ... }
- Specified by:
getHashBalanceFactor
in interfaceRingHashOrBuilder
- Returns:
- The hashBalanceFactor.
-
getHashBalanceFactorOrBuilder
@Deprecated public com.google.protobuf.UInt32ValueOrBuilder getHashBalanceFactorOrBuilder()
Deprecated.Configures percentage of average cluster load to bound per upstream host. For example, with a value of 150 no upstream host will get a load more than 1.5 times the average load of all the hosts in the cluster. If not specified, the load is not bounded for any upstream host. Typical value for this parameter is between 120 and 200. Minimum is 100. This is implemented based on the method described in the paper https://arxiv.org/abs/1608.01350. For the specified ``hash_balance_factor``, requests to any upstream host are capped at ``hash_balance_factor/100`` times the average number of requests across the cluster. When a request arrives for an upstream host that is currently serving at its max capacity, linear probing is used to identify an eligible host. Further, the linear probe is implemented using a random jump in hosts ring/table to identify the eligible host (this technique is as described in the paper https://arxiv.org/abs/1908.08762 - the random jump avoids the cascading overflow effect when choosing the next host in the ring/table). If weights are specified on the hosts, they are respected. This is an O(N) algorithm, unlike other load balancers. Using a lower ``hash_balance_factor`` results in more hosts being probed, so use a higher value if you require better performance. .. note:: This is deprecated and please use :ref:`consistent_hashing_lb_config <envoy_v3_api_field_extensions.load_balancing_policies.ring_hash.v3.RingHash.consistent_hashing_lb_config>` instead.
.google.protobuf.UInt32Value hash_balance_factor = 5 [deprecated = true, (.validate.rules) = { ... }
- Specified by:
getHashBalanceFactorOrBuilder
in interfaceRingHashOrBuilder
-
hasConsistentHashingLbConfig
public boolean hasConsistentHashingLbConfig()
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 6;
- Specified by:
hasConsistentHashingLbConfig
in interfaceRingHashOrBuilder
- Returns:
- Whether the consistentHashingLbConfig field is set.
-
getConsistentHashingLbConfig
public ConsistentHashingLbConfig getConsistentHashingLbConfig()
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 6;
- Specified by:
getConsistentHashingLbConfig
in interfaceRingHashOrBuilder
- Returns:
- The consistentHashingLbConfig.
-
getConsistentHashingLbConfigOrBuilder
public ConsistentHashingLbConfigOrBuilder getConsistentHashingLbConfigOrBuilder()
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 6;
- Specified by:
getConsistentHashingLbConfigOrBuilder
in interfaceRingHashOrBuilder
-
hasLocalityWeightedLbConfig
public boolean hasLocalityWeightedLbConfig()
Enable locality weighted load balancing for ring hash lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 7;
- Specified by:
hasLocalityWeightedLbConfig
in interfaceRingHashOrBuilder
- Returns:
- Whether the localityWeightedLbConfig field is set.
-
getLocalityWeightedLbConfig
public LocalityLbConfig.LocalityWeightedLbConfig getLocalityWeightedLbConfig()
Enable locality weighted load balancing for ring hash lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 7;
- Specified by:
getLocalityWeightedLbConfig
in interfaceRingHashOrBuilder
- Returns:
- The localityWeightedLbConfig.
-
getLocalityWeightedLbConfigOrBuilder
public LocalityLbConfig.LocalityWeightedLbConfigOrBuilder getLocalityWeightedLbConfigOrBuilder()
Enable locality weighted load balancing for ring hash lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 7;
- Specified by:
getLocalityWeightedLbConfigOrBuilder
in interfaceRingHashOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RingHash parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RingHash parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RingHash parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RingHash parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RingHash parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RingHash parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RingHash parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RingHash parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static RingHash parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static RingHash parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RingHash parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RingHash parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public RingHash.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RingHash.Builder newBuilder()
-
newBuilder
public static RingHash.Builder newBuilder(RingHash prototype)
-
toBuilder
public RingHash.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RingHash.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static RingHash getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RingHash> parser()
-
getParserForType
public com.google.protobuf.Parser<RingHash> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public RingHash getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-