Class TransactionBufferSnapshotBaseSystemTopicClient.TransactionBufferSnapshotReader<T>
java.lang.Object
org.apache.pulsar.broker.systopic.TransactionBufferSnapshotBaseSystemTopicClient.TransactionBufferSnapshotReader<T>
- All Implemented Interfaces:
SystemTopicClient.Reader<T>
- Enclosing class:
- TransactionBufferSnapshotBaseSystemTopicClient<T>
protected static class TransactionBufferSnapshotBaseSystemTopicClient.TransactionBufferSnapshotReader<T>
extends Object
implements SystemTopicClient.Reader<T>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransactionBufferSnapshotReader(org.apache.pulsar.client.api.Reader<T> reader, TransactionBufferSnapshotBaseSystemTopicClient<T> transactionBufferSnapshotBaseSystemTopicClient) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the system topic reader.Close the reader of the system topic asynchronously.Get the system topic of the reader.booleanCheck has more events available for the reader.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>>Async read event from system topic.
-
Constructor Details
-
TransactionBufferSnapshotReader
protected TransactionBufferSnapshotReader(org.apache.pulsar.client.api.Reader<T> reader, TransactionBufferSnapshotBaseSystemTopicClient<T> transactionBufferSnapshotBaseSystemTopicClient)
-
-
Method Details
-
readNext
public org.apache.pulsar.client.api.Message<T> readNext() throws org.apache.pulsar.client.api.PulsarClientExceptionDescription copied from interface:SystemTopicClient.ReaderRead event from system topic.- Specified by:
readNextin interfaceSystemTopicClient.Reader<T>- Returns:
- pulsar event
- Throws:
org.apache.pulsar.client.api.PulsarClientException
-
readNextAsync
Description copied from interface:SystemTopicClient.ReaderAsync read event from system topic.- Specified by:
readNextAsyncin interfaceSystemTopicClient.Reader<T>- Returns:
- pulsar event future
-
hasMoreEvents
public boolean hasMoreEvents() throws org.apache.pulsar.client.api.PulsarClientExceptionDescription copied from interface:SystemTopicClient.ReaderCheck has more events available for the reader.- Specified by:
hasMoreEventsin interfaceSystemTopicClient.Reader<T>- Returns:
- true if has remaining events, otherwise false
- Throws:
org.apache.pulsar.client.api.PulsarClientException
-
hasMoreEventsAsync
Description copied from interface:SystemTopicClient.ReaderCheck has more events available for the reader asynchronously.- Specified by:
hasMoreEventsAsyncin interfaceSystemTopicClient.Reader<T>- Returns:
- true if has remaining events, otherwise false
-
close
Description copied from interface:SystemTopicClient.ReaderClose the system topic reader.- Specified by:
closein interfaceSystemTopicClient.Reader<T>- Throws:
IOException
-
closeAsync
Description copied from interface:SystemTopicClient.ReaderClose the reader of the system topic asynchronously.- Specified by:
closeAsyncin interfaceSystemTopicClient.Reader<T>
-
getSystemTopic
Description copied from interface:SystemTopicClient.ReaderGet the system topic of the reader.- Specified by:
getSystemTopicin interfaceSystemTopicClient.Reader<T>- Returns:
- system topic
-