Package org.apache.pulsar.client.cli
Class CmdRead
java.lang.Object
org.apache.pulsar.client.cli.AbstractCmdConsume
org.apache.pulsar.client.cli.CmdRead
pulsar-client read command implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pulsar.client.cli.AbstractCmdConsume
AbstractCmdConsume.ConsumerSocket -
Field Summary
Fields inherited from class org.apache.pulsar.client.cli.AbstractCmdConsume
authentication, clientBuilder, LOG, MESSAGE_BOUNDARY, serviceURL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetWebSocketReadUri(String topic) intrun()Run the read command.Methods inherited from class org.apache.pulsar.client.cli.AbstractCmdConsume
genericObjectToMap, genericRecordToMap, interpretByteArray, interpretMessage, keyValueToMap, primitiveValueToMap, updateConfig
-
Constructor Details
-
CmdRead
public CmdRead()
-
-
Method Details
-
run
Run the read command.- Returns:
- 0 for success, < 0 otherwise
- Throws:
org.apache.pulsar.client.api.PulsarClientExceptionIOException
-
getWebSocketReadUri
-