public interface TPSLimiter
e.g. if tps for a method m1 is 5 for a minute then if 6th call is made within the span of 1 minute then 6th
should not be allowed isAllowable will return false.
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isAllowable(URL url,
Invocation invocation)
judge if the current invocation is allowed by TPS rule
|
boolean isAllowable(URL url, Invocation invocation)
url - urlinvocation - invocationCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.