public class AuthorityRule extends AbstractRule
| Constructor and Description |
|---|
AuthorityRule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getStrategy() |
int |
hashCode() |
boolean |
passCheck(Context context,
DefaultNode node,
int count,
Object... args)
Check whether current statistical indicators meet this rule, which means not exceeding any threshold.
|
AuthorityRule |
setStrategy(int strategy) |
String |
toString() |
as, getLimitApp, getResource, setLimitApp, setResourcepublic int getStrategy()
public AuthorityRule setStrategy(int strategy)
public boolean equals(Object o)
equals in class AbstractRulepublic int hashCode()
hashCode in class AbstractRulepublic boolean passCheck(Context context, DefaultNode node, int count, Object... args)
RuleCopyright © 2019 Alibaba Group. All rights reserved.