类 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
- istio.networking.v1alpha3.DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder
-
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilder,java.lang.Cloneable
public static final class DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder> implements DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilder
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service.
Protobuf typeistio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB
-
-
字段概要
字段 修饰符和类型 字段 说明 private java.lang.ObjecthashKey_private inthashKeyCase_private com.google.protobuf.SingleFieldBuilderV3<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie,DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie.Builder,DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookieOrBuilder>httpCookieBuilder_private longminimumRingSize_
-
方法概要
-
从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
-
-
-
字段详细资料
-
hashKeyCase_
private int hashKeyCase_
-
hashKey_
private java.lang.Object hashKey_
-
httpCookieBuilder_
private com.google.protobuf.SingleFieldBuilderV3<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie,DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie.Builder,DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookieOrBuilder> httpCookieBuilder_
-
minimumRingSize_
private long minimumRingSize_
-
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clear()
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- 指定者:
getDescriptorForType在接口中com.google.protobuf.Message.Builder- 指定者:
getDescriptorForType在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getDescriptorForType在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
getDefaultInstanceForType
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB getDefaultInstanceForType()
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB build()
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB buildPartial()
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
clone
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clone()
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
setField
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
clearField
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
clearOneof
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
setRepeatedField
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- 指定者:
setRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
setRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
addRepeatedField
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
mergeFrom
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder mergeFrom(com.google.protobuf.Message other)
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
mergeFrom
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder mergeFrom(DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB other)
-
isInitialized
public final boolean isInitialized()
- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
mergeFrom
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 指定者:
mergeFrom在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>- 抛出:
java.io.IOException
-
getHashKeyCase
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HashKeyCase getHashKeyCase()
-
clearHashKey
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearHashKey()
-
getHttpHeaderName
public java.lang.String getHttpHeaderName()
Hash based on a specific HTTP header.
string http_header_name = 1;
-
getHttpHeaderNameBytes
public com.google.protobuf.ByteString getHttpHeaderNameBytes()
Hash based on a specific HTTP header.
string http_header_name = 1;
-
setHttpHeaderName
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setHttpHeaderName(java.lang.String value)
Hash based on a specific HTTP header.
string http_header_name = 1;
-
clearHttpHeaderName
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearHttpHeaderName()
Hash based on a specific HTTP header.
string http_header_name = 1;
-
setHttpHeaderNameBytes
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setHttpHeaderNameBytes(com.google.protobuf.ByteString value)
Hash based on a specific HTTP header.
string http_header_name = 1;
-
hasHttpCookie
public boolean hasHttpCookie()
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;
-
getHttpCookie
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie getHttpCookie()
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;
-
setHttpCookie
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setHttpCookie(DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie value)
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;
-
setHttpCookie
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setHttpCookie(DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie.Builder builderForValue)
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;
-
mergeHttpCookie
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder mergeHttpCookie(DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie value)
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;
-
clearHttpCookie
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearHttpCookie()
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;
-
getHttpCookieBuilder
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie.Builder getHttpCookieBuilder()
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;
-
getHttpCookieOrBuilder
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookieOrBuilder getHttpCookieOrBuilder()
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;
-
getHttpCookieFieldBuilder
private com.google.protobuf.SingleFieldBuilderV3<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie,DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie.Builder,DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookieOrBuilder> getHttpCookieFieldBuilder()
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;
-
getUseSourceIp
public boolean getUseSourceIp()
Hash based on the source IP address.
bool use_source_ip = 3;
-
setUseSourceIp
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setUseSourceIp(boolean value)
Hash based on the source IP address.
bool use_source_ip = 3;
-
clearUseSourceIp
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearUseSourceIp()
Hash based on the source IP address.
bool use_source_ip = 3;
-
getHttpQueryParameterName
public java.lang.String getHttpQueryParameterName()
Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;
-
getHttpQueryParameterNameBytes
public com.google.protobuf.ByteString getHttpQueryParameterNameBytes()
Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;
-
setHttpQueryParameterName
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setHttpQueryParameterName(java.lang.String value)
Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;
-
clearHttpQueryParameterName
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearHttpQueryParameterName()
Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;
-
setHttpQueryParameterNameBytes
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setHttpQueryParameterNameBytes(com.google.protobuf.ByteString value)
Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;
-
getMinimumRingSize
public long getMinimumRingSize()
The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
uint64 minimum_ring_size = 4;
-
setMinimumRingSize
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setMinimumRingSize(long value)
The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
uint64 minimum_ring_size = 4;
-
clearMinimumRingSize
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearMinimumRingSize()
The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
uint64 minimum_ring_size = 4;
-
setUnknownFields
public final DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
mergeUnknownFields
public final DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
-