本文整理汇总了Java中com.netflix.loadbalancer.AbstractServerPredicate类的典型用法代码示例。如果您正苦于以下问题:Java AbstractServerPredicate类的具体用法?Java AbstractServerPredicate怎么用?Java AbstractServerPredicate使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AbstractServerPredicate类属于com.netflix.loadbalancer包,在下文中一共展示了AbstractServerPredicate类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPredicate
import com.netflix.loadbalancer.AbstractServerPredicate; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public AbstractServerPredicate getPredicate() {
return predicate;
}
示例2: getPredicate
import com.netflix.loadbalancer.AbstractServerPredicate; //导入依赖的package包/类
/**
* 返回负载均衡器选择断言,组合两种断言。。
* @return
*/
@Override
public AbstractServerPredicate getPredicate() {
return predicate;
}
示例3: from
import com.netflix.loadbalancer.AbstractServerPredicate; //导入依赖的package包/类
/**
* Constructs a rule description from a predicate.
*
* @param predicate the predicate.
* @return the predicate rule description.
*/
static RuleDescription from(AbstractServerPredicate predicate) {
return predicate::toString;
}
示例4: PredicateBasedRuleSupport
import com.netflix.loadbalancer.AbstractServerPredicate; //导入依赖的package包/类
/**
* Creates new instance of {@link PredicateBasedRuleSupport} class with specific predicate.
*
* @param predicate the server predicate, can't be null
* @throws IllegalArgumentException if {@code predicate} is {@code null}
*/
public PredicateBasedRuleSupport(@NotNull AbstractServerPredicate predicate) {
setPredicate(predicate);
}