类 NettyTransportClient

java.lang.Object
com.alibaba.csp.sentinel.cluster.client.NettyTransportClient
所有已实现的接口:
com.alibaba.csp.sentinel.cluster.ClusterTransportClient

public class NettyTransportClient extends Object implements com.alibaba.csp.sentinel.cluster.ClusterTransportClient
Netty transport client implementation for Sentinel cluster transport.
从以下版本开始:
1.4.0
作者:
Eric Zhao
  • 字段详细资料

    • RECONNECT_DELAY_MS

      public static final int RECONNECT_DELAY_MS
      另请参阅:
  • 构造器详细资料

    • NettyTransportClient

      public NettyTransportClient(String host, int port)
  • 方法详细资料

    • start

      public void start() throws Exception
      指定者:
      start 在接口中 com.alibaba.csp.sentinel.cluster.ClusterTransportClient
      抛出:
      Exception
    • stop

      public void stop() throws Exception
      指定者:
      stop 在接口中 com.alibaba.csp.sentinel.cluster.ClusterTransportClient
      抛出:
      Exception
    • isReady

      public boolean isReady()
      指定者:
      isReady 在接口中 com.alibaba.csp.sentinel.cluster.ClusterTransportClient
    • sendRequest

      public com.alibaba.csp.sentinel.cluster.response.ClusterResponse sendRequest(com.alibaba.csp.sentinel.cluster.request.ClusterRequest request) throws Exception
      指定者:
      sendRequest 在接口中 com.alibaba.csp.sentinel.cluster.ClusterTransportClient
      抛出:
      Exception