Class CmdConsume


  • public class CmdConsume
    extends java.lang.Object
    pulsar-client consume command implementation.
    • Constructor Summary

      Constructors 
      Constructor Description
      CmdConsume()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getWebSocketConsumeUri​(java.lang.String topic)  
      int run()
      Run the consume command.
      void updateConfig​(org.apache.pulsar.client.api.ClientBuilder clientBuilder, org.apache.pulsar.client.api.Authentication authentication, java.lang.String serviceURL)
      Set client configuration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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,
                                 java.lang.String serviceURL)
        Set client configuration.
      • run

        public int run()
                throws org.apache.pulsar.client.api.PulsarClientException,
                       java.io.IOException
        Run the consume command.
        Returns:
        0 for success, < 0 otherwise
        Throws:
        org.apache.pulsar.client.api.PulsarClientException
        java.io.IOException
      • getWebSocketConsumeUri

        public java.lang.String getWebSocketConsumeUri​(java.lang.String topic)