public interface TokenService
| Modifier and Type | Method and Description |
|---|---|
TokenResult |
requestParamToken(Long ruleId,
int acquireCount,
Collection<Object> params)
Request tokens for a specific parameter from remote token server.
|
TokenResult |
requestToken(Long ruleId,
int acquireCount,
boolean prioritized)
Request tokens from remote token server.
|
TokenResult requestToken(Long ruleId, int acquireCount, boolean prioritized)
ruleId - the unique rule IDacquireCount - token count to acquireprioritized - whether the request is prioritizedTokenResult requestParamToken(Long ruleId, int acquireCount, Collection<Object> params)
ruleId - the unique rule IDacquireCount - token count to acquireparams - parameter listCopyright © 2019 Alibaba Group. All rights reserved.