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.
|
void |
setStrategy(int strategy) |
String |
toString() |
as, getLimitApp, getResource, setLimitApp, setResourcepublic int getStrategy()
public void 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 © 2018 Alibaba Group. All rights reserved.