类 CmdConsume
java.lang.Object
org.apache.pulsar.client.cli.CmdConsume
pulsar-client consume command implementation.
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getWebSocketConsumeUri(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.
-
构造器详细资料
-
CmdConsume
public CmdConsume()
-
-
方法详细资料
-
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.- 返回:
- 0 for success, < 0 otherwise
- 抛出:
org.apache.pulsar.client.api.PulsarClientExceptionIOException
-
getWebSocketConsumeUri
-