public class DefaultEmbeddedTokenServer extends Object implements EmbeddedClusterTokenServer
SentinelDefaultTokenServer
and the TokenService from SPI provider.| Constructor and Description |
|---|
DefaultEmbeddedTokenServer() |
| Modifier and Type | Method and Description |
|---|---|
TokenResult |
requestParamToken(Long ruleId,
int acquireCount,
Collection<Object> params) |
TokenResult |
requestToken(Long ruleId,
int acquireCount,
boolean prioritized) |
void |
start() |
void |
stop() |
public void start()
throws Exception
start in interface ClusterTokenServerExceptionpublic void stop()
throws Exception
stop in interface ClusterTokenServerExceptionpublic TokenResult requestToken(Long ruleId, int acquireCount, boolean prioritized)
requestToken in interface TokenServicepublic TokenResult requestParamToken(Long ruleId, int acquireCount, Collection<Object> params)
requestParamToken in interface TokenServiceCopyright © 2020 Alibaba Group. All rights reserved.