接口 ClusterTokenClient
- 所有超级接口:
TokenService
Token client interface for distributed flow control.
- 从以下版本开始:
- 1.4.0
- 作者:
- Eric Zhao
-
方法概要
从接口继承的方法 com.alibaba.csp.sentinel.cluster.TokenService
releaseConcurrentToken, requestConcurrentToken, requestParamToken, requestToken
-
方法详细资料
-
currentServer
TokenServerDescriptor currentServer()Get descriptor of current token server.- 返回:
- current token server if connected, otherwise null
-
start
Start the token client.- 抛出:
Exception- some error occurs
-
stop
Stop the token client.- 抛出:
Exception- some error occurs
-
getState
int getState()Get state of the cluster token client.- 返回:
- state of the cluster token client
-