public class DefaultClusterTokenClient extends Object implements ClusterTokenClient
ClusterTokenClient.| Constructor and Description |
|---|
DefaultClusterTokenClient() |
| Modifier and Type | Method and Description |
|---|---|
TokenServerDescriptor |
currentServer() |
int |
getState() |
TokenResult |
requestParamToken(Long flowId,
int acquireCount,
Collection<Object> params) |
TokenResult |
requestToken(Long flowId,
int acquireCount,
boolean prioritized) |
void |
start() |
void |
stop() |
public void start()
throws Exception
start in interface ClusterTokenClientExceptionpublic void stop()
throws Exception
stop in interface ClusterTokenClientExceptionpublic int getState()
getState in interface ClusterTokenClientpublic TokenServerDescriptor currentServer()
currentServer in interface ClusterTokenClientpublic TokenResult requestToken(Long flowId, int acquireCount, boolean prioritized)
requestToken in interface TokenServicepublic TokenResult requestParamToken(Long flowId, int acquireCount, Collection<Object> params)
requestParamToken in interface TokenServiceCopyright © 2019 Alibaba Group. All rights reserved.