public class SystemTopicBaseTxnBufferSnapshotService extends Object implements TransactionBufferSnapshotService
| Constructor and Description |
|---|
SystemTopicBaseTxnBufferSnapshotService(org.apache.pulsar.client.api.PulsarClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close transaction buffer snapshot service.
|
CompletableFuture<SystemTopicClient.Reader<TransactionBufferSnapshot>> |
createReader(org.apache.pulsar.common.naming.TopicName topicName)
Create a transaction buffer snapshot reader.
|
CompletableFuture<SystemTopicClient.Writer<TransactionBufferSnapshot>> |
createWriter(org.apache.pulsar.common.naming.TopicName topicName)
Create a transaction buffer snapshot writer.
|
void |
removeClient(org.apache.pulsar.common.naming.TopicName topicName,
TransactionBufferSystemTopicClient transactionBufferSystemTopicClient)
Remove a topic client from cache.
|
public SystemTopicBaseTxnBufferSnapshotService(org.apache.pulsar.client.api.PulsarClient client)
public CompletableFuture<SystemTopicClient.Writer<TransactionBufferSnapshot>> createWriter(org.apache.pulsar.common.naming.TopicName topicName)
TransactionBufferSnapshotServicecreateWriter in interface TransactionBufferSnapshotServicetopicName - TopicName the topic nameCompletableFuture return the future of writerpublic CompletableFuture<SystemTopicClient.Reader<TransactionBufferSnapshot>> createReader(org.apache.pulsar.common.naming.TopicName topicName)
TransactionBufferSnapshotServicecreateReader in interface TransactionBufferSnapshotServicetopicName - TopicName the topic nameCompletableFuture return the future of readerpublic void removeClient(org.apache.pulsar.common.naming.TopicName topicName,
TransactionBufferSystemTopicClient transactionBufferSystemTopicClient)
TransactionBufferSnapshotServiceremoveClient in interface TransactionBufferSnapshotServicetopicName - TopicName the topic nametransactionBufferSystemTopicClient - TransactionBufferSystemTopicClient the topic clientpublic void close()
throws Exception
TransactionBufferSnapshotServiceclose in interface TransactionBufferSnapshotServiceExceptionCopyright © 2017–2022 Apache Software Foundation. All rights reserved.