Package org.apache.pulsar.broker.service
Interface TransactionBufferSnapshotService
- All Known Implementing Classes:
SystemTopicBaseTxnBufferSnapshotService
public interface TransactionBufferSnapshotService
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close transaction buffer snapshot service.createReader(org.apache.pulsar.common.naming.TopicName topicName) Create a transaction buffer snapshot reader.createWriter(org.apache.pulsar.common.naming.TopicName topicName) Create a transaction buffer snapshot writer.voidremoveClient(org.apache.pulsar.common.naming.TopicName topicName, TransactionBufferSystemTopicClient transactionBufferSystemTopicClient) Remove a topic client from cache.
-
Method Details
-
createWriter
CompletableFuture<SystemTopicClient.Writer<TransactionBufferSnapshot>> createWriter(org.apache.pulsar.common.naming.TopicName topicName) Create a transaction buffer snapshot writer.- Parameters:
topicName-TopicNamethe topic name- Returns:
CompletableFuture<SystemTopicClient.Writer>return the future of writer
-
createReader
CompletableFuture<SystemTopicClient.Reader<TransactionBufferSnapshot>> createReader(org.apache.pulsar.common.naming.TopicName topicName) Create a transaction buffer snapshot reader.- Parameters:
topicName-TopicNamethe topic name- Returns:
CompletableFuture<SystemTopicClient.Writer>return the future of reader
-
removeClient
void removeClient(org.apache.pulsar.common.naming.TopicName topicName, TransactionBufferSystemTopicClient transactionBufferSystemTopicClient) Remove a topic client from cache.- Parameters:
topicName-TopicNamethe topic nametransactionBufferSystemTopicClient-TransactionBufferSystemTopicClientthe topic client
-
close
Close transaction buffer snapshot service.- Throws:
Exception
-