接口 ClusterTokenClient

所有超级接口:
TokenService

public interface ClusterTokenClient extends TokenService
Token client interface for distributed flow control.
从以下版本开始:
1.4.0
作者:
Eric Zhao
  • 方法详细资料

    • currentServer

      TokenServerDescriptor currentServer()
      Get descriptor of current token server.
      返回:
      current token server if connected, otherwise null
    • start

      void start() throws Exception
      Start the token client.
      抛出:
      Exception - some error occurs
    • stop

      void stop() throws Exception
      Stop the token client.
      抛出:
      Exception - some error occurs
    • getState

      int getState()
      Get state of the cluster token client.
      返回:
      state of the cluster token client