public static interface RoutingProto.DestinationOrBuilder
extends com.google.protobuf.MessageOrBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsMetadata(String key)
被调方服务实例标签
value支持正则匹配
map<string, .v1.MatchString> metadata = 3; |
com.google.protobuf.BoolValue |
getIsolate()
是否对该set执行隔离,隔离后,不会再分配流量
.google.protobuf.BoolValue isolate = 7; |
com.google.protobuf.BoolValueOrBuilder |
getIsolateOrBuilder()
是否对该set执行隔离,隔离后,不会再分配流量
.google.protobuf.BoolValue isolate = 7; |
Map<String,ModelProto.MatchString> |
getMetadata()
已过时。
|
int |
getMetadataCount()
被调方服务实例标签
value支持正则匹配
map<string, .v1.MatchString> metadata = 3; |
Map<String,ModelProto.MatchString> |
getMetadataMap()
被调方服务实例标签
value支持正则匹配
map<string, .v1.MatchString> metadata = 3; |
ModelProto.MatchString |
getMetadataOrDefault(String key,
ModelProto.MatchString defaultValue)
被调方服务实例标签
value支持正则匹配
map<string, .v1.MatchString> metadata = 3; |
ModelProto.MatchString |
getMetadataOrThrow(String key)
被调方服务实例标签
value支持正则匹配
map<string, .v1.MatchString> metadata = 3; |
com.google.protobuf.StringValue |
getNamespace()
.google.protobuf.StringValue namespace = 2; |
com.google.protobuf.StringValueOrBuilder |
getNamespaceOrBuilder()
.google.protobuf.StringValue namespace = 2; |
com.google.protobuf.UInt32Value |
getPriority()
根据服务名和服务实例metadata筛选符合条件的服务实例子集
服务实例子集可以设置优先级和权重
优先级:整型,范围[0, 9],最高优先级为0
权重:整型
先按优先级路由,如果存在高优先级,不会使用低优先级
如果存在优先级相同的子集,再按权重分配
优先级和权重可以都不设置/设置一个/设置两个
如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
如果部分设置权重,部分没有设置,认为没有设置的权重为0
如果全部没有设置权重,认为权重相同
.google.protobuf.UInt32Value priority = 4; |
com.google.protobuf.UInt32ValueOrBuilder |
getPriorityOrBuilder()
根据服务名和服务实例metadata筛选符合条件的服务实例子集
服务实例子集可以设置优先级和权重
优先级:整型,范围[0, 9],最高优先级为0
权重:整型
先按优先级路由,如果存在高优先级,不会使用低优先级
如果存在优先级相同的子集,再按权重分配
优先级和权重可以都不设置/设置一个/设置两个
如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
如果部分设置权重,部分没有设置,认为没有设置的权重为0
如果全部没有设置权重,认为权重相同
.google.protobuf.UInt32Value priority = 4; |
com.google.protobuf.StringValue |
getService()
被调方服务以及命名空间
.google.protobuf.StringValue service = 1; |
com.google.protobuf.StringValueOrBuilder |
getServiceOrBuilder()
被调方服务以及命名空间
.google.protobuf.StringValue service = 1; |
com.google.protobuf.StringValue |
getTransfer()
将请求转发到代理服务
.google.protobuf.StringValue transfer = 6; |
com.google.protobuf.StringValueOrBuilder |
getTransferOrBuilder()
将请求转发到代理服务
.google.protobuf.StringValue transfer = 6; |
com.google.protobuf.UInt32Value |
getWeight()
.google.protobuf.UInt32Value weight = 5; |
com.google.protobuf.UInt32ValueOrBuilder |
getWeightOrBuilder()
.google.protobuf.UInt32Value weight = 5; |
boolean |
hasIsolate()
是否对该set执行隔离,隔离后,不会再分配流量
.google.protobuf.BoolValue isolate = 7; |
boolean |
hasNamespace()
.google.protobuf.StringValue namespace = 2; |
boolean |
hasPriority()
根据服务名和服务实例metadata筛选符合条件的服务实例子集
服务实例子集可以设置优先级和权重
优先级:整型,范围[0, 9],最高优先级为0
权重:整型
先按优先级路由,如果存在高优先级,不会使用低优先级
如果存在优先级相同的子集,再按权重分配
优先级和权重可以都不设置/设置一个/设置两个
如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
如果部分设置权重,部分没有设置,认为没有设置的权重为0
如果全部没有设置权重,认为权重相同
.google.protobuf.UInt32Value priority = 4; |
boolean |
hasService()
被调方服务以及命名空间
.google.protobuf.StringValue service = 1; |
boolean |
hasTransfer()
将请求转发到代理服务
.google.protobuf.StringValue transfer = 6; |
boolean |
hasWeight()
.google.protobuf.UInt32Value weight = 5; |
boolean hasService()
被调方服务以及命名空间
.google.protobuf.StringValue service = 1;com.google.protobuf.StringValue getService()
被调方服务以及命名空间
.google.protobuf.StringValue service = 1;com.google.protobuf.StringValueOrBuilder getServiceOrBuilder()
被调方服务以及命名空间
.google.protobuf.StringValue service = 1;boolean hasNamespace()
.google.protobuf.StringValue namespace = 2;com.google.protobuf.StringValue getNamespace()
.google.protobuf.StringValue namespace = 2;com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder()
.google.protobuf.StringValue namespace = 2;int getMetadataCount()
被调方服务实例标签 value支持正则匹配
map<string, .v1.MatchString> metadata = 3;boolean containsMetadata(String key)
被调方服务实例标签 value支持正则匹配
map<string, .v1.MatchString> metadata = 3;@Deprecated Map<String,ModelProto.MatchString> getMetadata()
getMetadataMap() instead.Map<String,ModelProto.MatchString> getMetadataMap()
被调方服务实例标签 value支持正则匹配
map<string, .v1.MatchString> metadata = 3;ModelProto.MatchString getMetadataOrDefault(String key, ModelProto.MatchString defaultValue)
被调方服务实例标签 value支持正则匹配
map<string, .v1.MatchString> metadata = 3;ModelProto.MatchString getMetadataOrThrow(String key)
被调方服务实例标签 value支持正则匹配
map<string, .v1.MatchString> metadata = 3;boolean hasPriority()
根据服务名和服务实例metadata筛选符合条件的服务实例子集 服务实例子集可以设置优先级和权重 优先级:整型,范围[0, 9],最高优先级为0 权重:整型 先按优先级路由,如果存在高优先级,不会使用低优先级 如果存在优先级相同的子集,再按权重分配 优先级和权重可以都不设置/设置一个/设置两个 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低 如果部分设置权重,部分没有设置,认为没有设置的权重为0 如果全部没有设置权重,认为权重相同
.google.protobuf.UInt32Value priority = 4;com.google.protobuf.UInt32Value getPriority()
根据服务名和服务实例metadata筛选符合条件的服务实例子集 服务实例子集可以设置优先级和权重 优先级:整型,范围[0, 9],最高优先级为0 权重:整型 先按优先级路由,如果存在高优先级,不会使用低优先级 如果存在优先级相同的子集,再按权重分配 优先级和权重可以都不设置/设置一个/设置两个 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低 如果部分设置权重,部分没有设置,认为没有设置的权重为0 如果全部没有设置权重,认为权重相同
.google.protobuf.UInt32Value priority = 4;com.google.protobuf.UInt32ValueOrBuilder getPriorityOrBuilder()
根据服务名和服务实例metadata筛选符合条件的服务实例子集 服务实例子集可以设置优先级和权重 优先级:整型,范围[0, 9],最高优先级为0 权重:整型 先按优先级路由,如果存在高优先级,不会使用低优先级 如果存在优先级相同的子集,再按权重分配 优先级和权重可以都不设置/设置一个/设置两个 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低 如果部分设置权重,部分没有设置,认为没有设置的权重为0 如果全部没有设置权重,认为权重相同
.google.protobuf.UInt32Value priority = 4;boolean hasWeight()
.google.protobuf.UInt32Value weight = 5;com.google.protobuf.UInt32Value getWeight()
.google.protobuf.UInt32Value weight = 5;com.google.protobuf.UInt32ValueOrBuilder getWeightOrBuilder()
.google.protobuf.UInt32Value weight = 5;boolean hasTransfer()
将请求转发到代理服务
.google.protobuf.StringValue transfer = 6;com.google.protobuf.StringValue getTransfer()
将请求转发到代理服务
.google.protobuf.StringValue transfer = 6;com.google.protobuf.StringValueOrBuilder getTransferOrBuilder()
将请求转发到代理服务
.google.protobuf.StringValue transfer = 6;boolean hasIsolate()
是否对该set执行隔离,隔离后,不会再分配流量
.google.protobuf.BoolValue isolate = 7;com.google.protobuf.BoolValue getIsolate()
是否对该set执行隔离,隔离后,不会再分配流量
.google.protobuf.BoolValue isolate = 7;com.google.protobuf.BoolValueOrBuilder getIsolateOrBuilder()
是否对该set执行隔离,隔离后,不会再分配流量
.google.protobuf.BoolValue isolate = 7;Copyright © 2022. All rights reserved.