Class TableView<T>
java.lang.Object
org.apache.pulsar.broker.transaction.buffer.impl.TableView<T>
Compared with the more generic
TableView, this table view
- Provides just a single public method that reads the latest value synchronously.
- Maintains multiple long-lived readers that will be expired after some time (1 minute by default).-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Function<org.apache.pulsar.common.naming.TopicName,CompletableFuture<SystemTopicClient.Reader<T>>> -
Constructor Summary
ConstructorsConstructorDescriptionTableView(Function<org.apache.pulsar.common.naming.TopicName, CompletableFuture<SystemTopicClient.Reader<T>>> readerCreator, long clientOperationTimeoutMs, ScheduledExecutorService executor) -
Method Summary
-
Field Details
-
readerCreator
protected final Function<org.apache.pulsar.common.naming.TopicName,CompletableFuture<SystemTopicClient.Reader<T>>> readerCreator
-
-
Constructor Details
-
TableView
public TableView(Function<org.apache.pulsar.common.naming.TopicName, CompletableFuture<SystemTopicClient.Reader<T>>> readerCreator, long clientOperationTimeoutMs, ScheduledExecutorService executor)
-
-
Method Details
-
readLatest
- Throws:
Exception
-
getReader
-