Package org.apache.pulsar.client.cli
Class CmdConsume
- java.lang.Object
-
- org.apache.pulsar.client.cli.CmdConsume
-
public class CmdConsume extends java.lang.Objectpulsar-client consume command implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCmdConsume.ConsumerSocket
-
Constructor Summary
Constructors Constructor Description CmdConsume()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetWebSocketConsumeUri(java.lang.String topic)intrun()Run the consume command.voidupdateConfig(org.apache.pulsar.client.api.ClientBuilder clientBuilder, org.apache.pulsar.client.api.Authentication authentication, java.lang.String serviceURL)Set client configuration.
-
-
-
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.IOExceptionRun the consume command.- Returns:
- 0 for success, < 0 otherwise
- Throws:
org.apache.pulsar.client.api.PulsarClientExceptionjava.io.IOException
-
getWebSocketConsumeUri
public java.lang.String getWebSocketConsumeUri(java.lang.String topic)
-
-