Package org.apache.pulsar.broker.service
Interface TransactionBufferSnapshotService
-
- All Known Implementing Classes:
SystemTopicBaseTxnBufferSnapshotService
public interface TransactionBufferSnapshotService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close transaction buffer snapshot service.java.util.concurrent.CompletableFuture<SystemTopicClient.Reader<TransactionBufferSnapshot>>createReader(org.apache.pulsar.common.naming.TopicName topicName)Create a transaction buffer snapshot reader.java.util.concurrent.CompletableFuture<SystemTopicClient.Writer<TransactionBufferSnapshot>>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 Detail
-
createWriter
java.util.concurrent.CompletableFuture<SystemTopicClient.Writer<TransactionBufferSnapshot>> createWriter(org.apache.pulsar.common.naming.TopicName topicName)
Create a transaction buffer snapshot writer.- Parameters:
topicName-TopicNamethe topic name- Returns:
CompletableFuturereturn the future of writer
-
createReader
java.util.concurrent.CompletableFuture<SystemTopicClient.Reader<TransactionBufferSnapshot>> createReader(org.apache.pulsar.common.naming.TopicName topicName)
Create a transaction buffer snapshot reader.- Parameters:
topicName-TopicNamethe topic name- Returns:
CompletableFuturereturn 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
void close() throws java.lang.ExceptionClose transaction buffer snapshot service.- Throws:
java.lang.Exception
-
-