类 ZeromqClient

java.lang.Object
com.github.myzhan.locust4j.rpc.ZeromqClient
所有已实现的接口:
Client

public class ZeromqClient extends Object implements Client
Locust used to support both plain-socket and zeromq. Since Locust 0.8, it removes the plain-socket implementation. Locust4j only supports zeromq.
作者:
myzhan
  • 构造器详细资料

    • ZeromqClient

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

    • recv

      public Message recv() throws IOException
      从接口复制的说明: Client
      receive message from master
      指定者:
      recv 在接口中 Client
      返回:
      Message
      抛出:
      IOException - network IO exception
    • send

      public void send(Message message) throws IOException
      从接口复制的说明: Client
      send message to master
      指定者:
      send 在接口中 Client
      参数:
      message - msgpack message sent to the master
      抛出:
      IOException - network IO exception
    • close

      public void close()
      从接口复制的说明: Client
      close client
      指定者:
      close 在接口中 Client