public static interface SystemTopicClient.Reader<T>
| 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<T> |
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<T> |
readNext()
Read event from system topic.
|
CompletableFuture<org.apache.pulsar.client.api.Message<T>> |
readNextAsync()
Async read event from system topic.
|
org.apache.pulsar.client.api.Message<T> readNext() throws org.apache.pulsar.client.api.PulsarClientException
org.apache.pulsar.client.api.PulsarClientExceptionCompletableFuture<org.apache.pulsar.client.api.Message<T>> 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<T> getSystemTopic()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.