public static final class CircuitBreakerProto.DestinationSet extends com.google.protobuf.GeneratedMessageV3 implements CircuitBreakerProto.DestinationSetOrBuilder
目标set的规则Protobuf type
v1.DestinationSet| 限定符和类型 | 类和说明 |
|---|---|
static class |
CircuitBreakerProto.DestinationSet.Builder
目标set的规则
Protobuf type
v1.DestinationSet |
static class |
CircuitBreakerProto.DestinationSet.Resource
需要进行熔断的资源
支持SUBSET(子集群),以及INSTANCE(单个实例),默认为SUBSET
Protobuf enum
v1.DestinationSet.Resource |
static class |
CircuitBreakerProto.DestinationSet.Scope
熔断范围,是否扩散针对相同服务下所有接口进行熔断
Protobuf enum
v1.DestinationSet.Scope |
static class |
CircuitBreakerProto.DestinationSet.Type
熔断决策类型,支持GLOBAL(分布式决策)以及LOCAL(本地决策),默认GLOBAL
当指定为GLOBAL时,则会定期上报统计数据并根据汇总数据进行熔断决策
Protobuf enum
v1.DestinationSet.Type |
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ERRORCODES_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
METHOD_FIELD_NUMBER |
static int |
METRICPRECISION_FIELD_NUMBER |
static int |
METRICWINDOW_FIELD_NUMBER |
static int |
NAMESPACE_FIELD_NUMBER |
static int |
POLICY_FIELD_NUMBER |
static int |
RECOVER_FIELD_NUMBER |
static int |
RESOURCE_FIELD_NUMBER |
static int |
SCOPE_FIELD_NUMBER |
static int |
SERVICE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
static int |
UPDATEINTERVAL_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsMetadata(String key)
可选,SUBSET标识
map<string, .v1.MatchString> metadata = 3; |
boolean |
equals(Object obj) |
static CircuitBreakerProto.DestinationSet |
getDefaultInstance() |
CircuitBreakerProto.DestinationSet |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Int64Value |
getErrorCodes(int index)
返回码,指定哪些返回码会使用该规则
repeated .google.protobuf.Int64Value errorCodes = 13; |
int |
getErrorCodesCount()
返回码,指定哪些返回码会使用该规则
repeated .google.protobuf.Int64Value errorCodes = 13; |
List<com.google.protobuf.Int64Value> |
getErrorCodesList()
返回码,指定哪些返回码会使用该规则
repeated .google.protobuf.Int64Value errorCodes = 13; |
com.google.protobuf.Int64ValueOrBuilder |
getErrorCodesOrBuilder(int index)
返回码,指定哪些返回码会使用该规则
repeated .google.protobuf.Int64Value errorCodes = 13; |
List<? extends com.google.protobuf.Int64ValueOrBuilder> |
getErrorCodesOrBuilderList()
返回码,指定哪些返回码会使用该规则
repeated .google.protobuf.Int64Value errorCodes = 13; |
Map<String,ModelProto.MatchString> |
getMetadata()
已过时。
|
int |
getMetadataCount()
可选,SUBSET标识
map<string, .v1.MatchString> metadata = 3; |
Map<String,ModelProto.MatchString> |
getMetadataMap()
可选,SUBSET标识
map<string, .v1.MatchString> metadata = 3; |
ModelProto.MatchString |
getMetadataOrDefault(String key,
ModelProto.MatchString defaultValue)
可选,SUBSET标识
map<string, .v1.MatchString> metadata = 3; |
ModelProto.MatchString |
getMetadataOrThrow(String key)
可选,SUBSET标识
map<string, .v1.MatchString> metadata = 3; |
ModelProto.MatchString |
getMethod()
被调的接口信息,指定哪些接口会使用该规则
.v1.MatchString method = 12; |
ModelProto.MatchStringOrBuilder |
getMethodOrBuilder()
被调的接口信息,指定哪些接口会使用该规则
.v1.MatchString method = 12; |
com.google.protobuf.UInt32Value |
getMetricPrecision()
熔断数据统计精度,决定数据度量的最小周期
度量滑窗的步长=window/precision
.google.protobuf.UInt32Value metricPrecision = 8; |
com.google.protobuf.UInt32ValueOrBuilder |
getMetricPrecisionOrBuilder()
熔断数据统计精度,决定数据度量的最小周期
度量滑窗的步长=window/precision
.google.protobuf.UInt32Value metricPrecision = 8; |
com.google.protobuf.Duration |
getMetricWindow()
熔断数据度量周期
所有的阈值指标按此周期进行统计
.google.protobuf.Duration metricWindow = 7; |
com.google.protobuf.DurationOrBuilder |
getMetricWindowOrBuilder()
熔断数据度量周期
所有的阈值指标按此周期进行统计
.google.protobuf.Duration metricWindow = 7; |
com.google.protobuf.StringValue |
getNamespace()
.google.protobuf.StringValue namespace = 2; |
com.google.protobuf.StringValueOrBuilder |
getNamespaceOrBuilder()
.google.protobuf.StringValue namespace = 2; |
com.google.protobuf.Parser<CircuitBreakerProto.DestinationSet> |
getParserForType() |
CircuitBreakerProto.CbPolicy |
getPolicy()
熔断策略
.v1.CbPolicy policy = 11; |
CircuitBreakerProto.CbPolicyOrBuilder |
getPolicyOrBuilder()
熔断策略
.v1.CbPolicy policy = 11; |
CircuitBreakerProto.RecoverConfig |
getRecover()
触发熔断后恢复配置
.v1.RecoverConfig recover = 10; |
CircuitBreakerProto.RecoverConfigOrBuilder |
getRecoverOrBuilder()
触发熔断后恢复配置
.v1.RecoverConfig recover = 10; |
CircuitBreakerProto.DestinationSet.Resource |
getResource()
.v1.DestinationSet.Resource resource = 4; |
int |
getResourceValue()
.v1.DestinationSet.Resource resource = 4; |
CircuitBreakerProto.DestinationSet.Scope |
getScope()
.v1.DestinationSet.Scope scope = 6; |
int |
getScopeValue()
.v1.DestinationSet.Scope scope = 6; |
int |
getSerializedSize() |
com.google.protobuf.StringValue |
getService()
被调命名空间以及服务名,可以为*,代表全匹配
.google.protobuf.StringValue service = 1; |
com.google.protobuf.StringValueOrBuilder |
getServiceOrBuilder()
被调命名空间以及服务名,可以为*,代表全匹配
.google.protobuf.StringValue service = 1; |
CircuitBreakerProto.DestinationSet.Type |
getType()
.v1.DestinationSet.Type type = 5; |
int |
getTypeValue()
.v1.DestinationSet.Type type = 5; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
com.google.protobuf.Duration |
getUpdateInterval()
熔断数据上报周期,对分布式熔断有效
.google.protobuf.Duration updateInterval = 9; |
com.google.protobuf.DurationOrBuilder |
getUpdateIntervalOrBuilder()
熔断数据上报周期,对分布式熔断有效
.google.protobuf.Duration updateInterval = 9; |
int |
hashCode() |
boolean |
hasMethod()
被调的接口信息,指定哪些接口会使用该规则
.v1.MatchString method = 12; |
boolean |
hasMetricPrecision()
熔断数据统计精度,决定数据度量的最小周期
度量滑窗的步长=window/precision
.google.protobuf.UInt32Value metricPrecision = 8; |
boolean |
hasMetricWindow()
熔断数据度量周期
所有的阈值指标按此周期进行统计
.google.protobuf.Duration metricWindow = 7; |
boolean |
hasNamespace()
.google.protobuf.StringValue namespace = 2; |
boolean |
hasPolicy()
熔断策略
.v1.CbPolicy policy = 11; |
boolean |
hasRecover()
触发熔断后恢复配置
.v1.RecoverConfig recover = 10; |
boolean |
hasService()
被调命名空间以及服务名,可以为*,代表全匹配
.google.protobuf.StringValue service = 1; |
boolean |
hasUpdateInterval()
熔断数据上报周期,对分布式熔断有效
.google.protobuf.Duration updateInterval = 9; |
boolean |
isInitialized() |
static CircuitBreakerProto.DestinationSet.Builder |
newBuilder() |
static CircuitBreakerProto.DestinationSet.Builder |
newBuilder(CircuitBreakerProto.DestinationSet prototype) |
CircuitBreakerProto.DestinationSet.Builder |
newBuilderForType() |
static CircuitBreakerProto.DestinationSet |
parseDelimitedFrom(InputStream input) |
static CircuitBreakerProto.DestinationSet |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CircuitBreakerProto.DestinationSet |
parseFrom(byte[] data) |
static CircuitBreakerProto.DestinationSet |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CircuitBreakerProto.DestinationSet |
parseFrom(ByteBuffer data) |
static CircuitBreakerProto.DestinationSet |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CircuitBreakerProto.DestinationSet |
parseFrom(com.google.protobuf.ByteString data) |
static CircuitBreakerProto.DestinationSet |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CircuitBreakerProto.DestinationSet |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CircuitBreakerProto.DestinationSet |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CircuitBreakerProto.DestinationSet |
parseFrom(InputStream input) |
static CircuitBreakerProto.DestinationSet |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CircuitBreakerProto.DestinationSet> |
parser() |
CircuitBreakerProto.DestinationSet.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoffindInitializationErrors, getInitializationErrorString, toStringtoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int SERVICE_FIELD_NUMBER
public static final int NAMESPACE_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER
public static final int METRICWINDOW_FIELD_NUMBER
public static final int METRICPRECISION_FIELD_NUMBER
public static final int UPDATEINTERVAL_FIELD_NUMBER
public static final int RECOVER_FIELD_NUMBER
public static final int POLICY_FIELD_NUMBER
public static final int METHOD_FIELD_NUMBER
public static final int ERRORCODES_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public boolean hasService()
被调命名空间以及服务名,可以为*,代表全匹配
.google.protobuf.StringValue service = 1;hasService 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic com.google.protobuf.StringValue getService()
被调命名空间以及服务名,可以为*,代表全匹配
.google.protobuf.StringValue service = 1;getService 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic com.google.protobuf.StringValueOrBuilder getServiceOrBuilder()
被调命名空间以及服务名,可以为*,代表全匹配
.google.protobuf.StringValue service = 1;public boolean hasNamespace()
.google.protobuf.StringValue namespace = 2;hasNamespace 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic com.google.protobuf.StringValue getNamespace()
.google.protobuf.StringValue namespace = 2;getNamespace 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder()
.google.protobuf.StringValue namespace = 2;public int getMetadataCount()
可选,SUBSET标识
map<string, .v1.MatchString> metadata = 3;public boolean containsMetadata(String key)
可选,SUBSET标识
map<string, .v1.MatchString> metadata = 3;@Deprecated public Map<String,ModelProto.MatchString> getMetadata()
getMetadataMap() instead.public Map<String,ModelProto.MatchString> getMetadataMap()
可选,SUBSET标识
map<string, .v1.MatchString> metadata = 3;public ModelProto.MatchString getMetadataOrDefault(String key, ModelProto.MatchString defaultValue)
可选,SUBSET标识
map<string, .v1.MatchString> metadata = 3;public ModelProto.MatchString getMetadataOrThrow(String key)
可选,SUBSET标识
map<string, .v1.MatchString> metadata = 3;public int getResourceValue()
.v1.DestinationSet.Resource resource = 4;getResourceValue 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic CircuitBreakerProto.DestinationSet.Resource getResource()
.v1.DestinationSet.Resource resource = 4;getResource 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic int getTypeValue()
.v1.DestinationSet.Type type = 5;getTypeValue 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic CircuitBreakerProto.DestinationSet.Type getType()
.v1.DestinationSet.Type type = 5;getType 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic int getScopeValue()
.v1.DestinationSet.Scope scope = 6;getScopeValue 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic CircuitBreakerProto.DestinationSet.Scope getScope()
.v1.DestinationSet.Scope scope = 6;getScope 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic boolean hasMetricWindow()
熔断数据度量周期 所有的阈值指标按此周期进行统计
.google.protobuf.Duration metricWindow = 7;hasMetricWindow 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic com.google.protobuf.Duration getMetricWindow()
熔断数据度量周期 所有的阈值指标按此周期进行统计
.google.protobuf.Duration metricWindow = 7;getMetricWindow 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic com.google.protobuf.DurationOrBuilder getMetricWindowOrBuilder()
熔断数据度量周期 所有的阈值指标按此周期进行统计
.google.protobuf.Duration metricWindow = 7;public boolean hasMetricPrecision()
熔断数据统计精度,决定数据度量的最小周期 度量滑窗的步长=window/precision
.google.protobuf.UInt32Value metricPrecision = 8;hasMetricPrecision 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic com.google.protobuf.UInt32Value getMetricPrecision()
熔断数据统计精度,决定数据度量的最小周期 度量滑窗的步长=window/precision
.google.protobuf.UInt32Value metricPrecision = 8;getMetricPrecision 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic com.google.protobuf.UInt32ValueOrBuilder getMetricPrecisionOrBuilder()
熔断数据统计精度,决定数据度量的最小周期 度量滑窗的步长=window/precision
.google.protobuf.UInt32Value metricPrecision = 8;public boolean hasUpdateInterval()
熔断数据上报周期,对分布式熔断有效
.google.protobuf.Duration updateInterval = 9;hasUpdateInterval 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic com.google.protobuf.Duration getUpdateInterval()
熔断数据上报周期,对分布式熔断有效
.google.protobuf.Duration updateInterval = 9;getUpdateInterval 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic com.google.protobuf.DurationOrBuilder getUpdateIntervalOrBuilder()
熔断数据上报周期,对分布式熔断有效
.google.protobuf.Duration updateInterval = 9;public boolean hasRecover()
触发熔断后恢复配置
.v1.RecoverConfig recover = 10;hasRecover 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic CircuitBreakerProto.RecoverConfig getRecover()
触发熔断后恢复配置
.v1.RecoverConfig recover = 10;getRecover 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic CircuitBreakerProto.RecoverConfigOrBuilder getRecoverOrBuilder()
触发熔断后恢复配置
.v1.RecoverConfig recover = 10;public boolean hasPolicy()
熔断策略
.v1.CbPolicy policy = 11;hasPolicy 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic CircuitBreakerProto.CbPolicy getPolicy()
熔断策略
.v1.CbPolicy policy = 11;getPolicy 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic CircuitBreakerProto.CbPolicyOrBuilder getPolicyOrBuilder()
熔断策略
.v1.CbPolicy policy = 11;public boolean hasMethod()
被调的接口信息,指定哪些接口会使用该规则
.v1.MatchString method = 12;hasMethod 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic ModelProto.MatchString getMethod()
被调的接口信息,指定哪些接口会使用该规则
.v1.MatchString method = 12;getMethod 在接口中 CircuitBreakerProto.DestinationSetOrBuilderpublic ModelProto.MatchStringOrBuilder getMethodOrBuilder()
被调的接口信息,指定哪些接口会使用该规则
.v1.MatchString method = 12;public List<com.google.protobuf.Int64Value> getErrorCodesList()
返回码,指定哪些返回码会使用该规则
repeated .google.protobuf.Int64Value errorCodes = 13;public List<? extends com.google.protobuf.Int64ValueOrBuilder> getErrorCodesOrBuilderList()
返回码,指定哪些返回码会使用该规则
repeated .google.protobuf.Int64Value errorCodes = 13;public int getErrorCodesCount()
返回码,指定哪些返回码会使用该规则
repeated .google.protobuf.Int64Value errorCodes = 13;public com.google.protobuf.Int64Value getErrorCodes(int index)
返回码,指定哪些返回码会使用该规则
repeated .google.protobuf.Int64Value errorCodes = 13;public com.google.protobuf.Int64ValueOrBuilder getErrorCodesOrBuilder(int index)
返回码,指定哪些返回码会使用该规则
repeated .google.protobuf.Int64Value errorCodes = 13;public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static CircuitBreakerProto.DestinationSet parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CircuitBreakerProto.DestinationSet parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CircuitBreakerProto.DestinationSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CircuitBreakerProto.DestinationSet parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CircuitBreakerProto.DestinationSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CircuitBreakerProto.DestinationSet parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CircuitBreakerProto.DestinationSet parseFrom(InputStream input) throws IOException
IOExceptionpublic static CircuitBreakerProto.DestinationSet parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CircuitBreakerProto.DestinationSet parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CircuitBreakerProto.DestinationSet parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CircuitBreakerProto.DestinationSet parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CircuitBreakerProto.DestinationSet parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CircuitBreakerProto.DestinationSet.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static CircuitBreakerProto.DestinationSet.Builder newBuilder()
public static CircuitBreakerProto.DestinationSet.Builder newBuilder(CircuitBreakerProto.DestinationSet prototype)
public CircuitBreakerProto.DestinationSet.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLitepublic static CircuitBreakerProto.DestinationSet getDefaultInstance()
public static com.google.protobuf.Parser<CircuitBreakerProto.DestinationSet> parser()
public com.google.protobuf.Parser<CircuitBreakerProto.DestinationSet> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public CircuitBreakerProto.DestinationSet getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2021. All rights reserved.