Class CmdConsume

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

public class CmdConsume extends Object
pulsar-client consume command implementation.
  • Constructor Details

    • CmdConsume

      public CmdConsume()
  • Method Details

    • 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.
      Returns:
      0 for success, < 0 otherwise
      Throws:
      org.apache.pulsar.client.api.PulsarClientException
      IOException
    • getWebSocketConsumeUri

      public String getWebSocketConsumeUri(String topic)