类 CmdConsume

java.lang.Object
org.apache.pulsar.client.cli.CmdConsume

public class CmdConsume extends Object
pulsar-client consume command implementation.
  • 构造器详细资料

    • CmdConsume

      public CmdConsume()
  • 方法详细资料

    • updateConfig

      public void updateConfig(org.apache.pulsar.client.api.ClientBuilder clientBuilder, org.apache.pulsar.client.api.Authentication authentication, String serviceURL)
      Set client configuration.
    • run

      public int run() throws org.apache.pulsar.client.api.PulsarClientException, IOException
      Run the consume command.
      返回:
      0 for success, < 0 otherwise
      抛出:
      org.apache.pulsar.client.api.PulsarClientException
      IOException
    • getWebSocketConsumeUri

      public String getWebSocketConsumeUri(String topic)