public static interface SystemTopicClient.Reader
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the system topic reader.
|
CompletableFuture<Void> |
closeAsync()
Close the reader of the system topic asynchronously.
|
SystemTopicClient |
getSystemTopic()
Get the system topic of the reader
|
boolean |
hasMoreEvents()
Check has more events available for the reader.
|
CompletableFuture<Boolean> |
hasMoreEventsAsync()
Check has more events available for the reader asynchronously.
|
org.apache.pulsar.client.api.Message<org.apache.pulsar.common.events.PulsarEvent> |
readNext()
Read event from system topic
|
CompletableFuture<org.apache.pulsar.client.api.Message<org.apache.pulsar.common.events.PulsarEvent>> |
readNextAsync()
Async read event from system topic
|
org.apache.pulsar.client.api.Message<org.apache.pulsar.common.events.PulsarEvent> readNext()
throws org.apache.pulsar.client.api.PulsarClientException
org.apache.pulsar.client.api.PulsarClientExceptionCompletableFuture<org.apache.pulsar.client.api.Message<org.apache.pulsar.common.events.PulsarEvent>> readNextAsync()
boolean hasMoreEvents()
throws org.apache.pulsar.client.api.PulsarClientException
org.apache.pulsar.client.api.PulsarClientExceptionCompletableFuture<Boolean> hasMoreEventsAsync()
void close()
throws IOException
IOExceptionCompletableFuture<Void> closeAsync()
SystemTopicClient getSystemTopic()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.