Class CmdConsume


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

      • CmdConsume

        public CmdConsume()
    • Method Detail

      • 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)