Package org.apache.pulsar.client.cli
Class CmdConsume
java.lang.Object
org.apache.pulsar.client.cli.CmdConsume
pulsar-client consume command implementation.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetWebSocketConsumeUri(String topic) intrun()Run the consume command.voidupdateConfig(org.apache.pulsar.client.api.ClientBuilder clientBuilder, org.apache.pulsar.client.api.Authentication authentication, String serviceURL) Set client configuration.
-
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
Run the consume command.- Returns:
- 0 for success, < 0 otherwise
- Throws:
org.apache.pulsar.client.api.PulsarClientExceptionIOException
-
getWebSocketConsumeUri
-