Package org.apache.pulsar.broker.service
Class SystemTopicBaseTxnBufferSnapshotService
- java.lang.Object
-
- org.apache.pulsar.broker.service.SystemTopicBaseTxnBufferSnapshotService
-
- All Implemented Interfaces:
TransactionBufferSnapshotService
public class SystemTopicBaseTxnBufferSnapshotService extends java.lang.Object implements TransactionBufferSnapshotService
-
-
Constructor Summary
Constructors Constructor Description SystemTopicBaseTxnBufferSnapshotService(org.apache.pulsar.client.api.PulsarClient client)
-
Method Summary
All Methods Instance Methods Concrete 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
public java.util.concurrent.CompletableFuture<SystemTopicClient.Writer<TransactionBufferSnapshot>> createWriter(org.apache.pulsar.common.naming.TopicName topicName)
Description copied from interface:TransactionBufferSnapshotServiceCreate a transaction buffer snapshot writer.- Specified by:
createWriterin interfaceTransactionBufferSnapshotService- Parameters:
topicName-TopicNamethe topic name- Returns:
CompletableFuturereturn the future of writer
-
createReader
public java.util.concurrent.CompletableFuture<SystemTopicClient.Reader<TransactionBufferSnapshot>> createReader(org.apache.pulsar.common.naming.TopicName topicName)
Description copied from interface:TransactionBufferSnapshotServiceCreate a transaction buffer snapshot reader.- Specified by:
createReaderin interfaceTransactionBufferSnapshotService- Parameters:
topicName-TopicNamethe topic name- Returns:
CompletableFuturereturn the future of reader
-
removeClient
public void removeClient(org.apache.pulsar.common.naming.TopicName topicName, TransactionBufferSystemTopicClient transactionBufferSystemTopicClient)Description copied from interface:TransactionBufferSnapshotServiceRemove a topic client from cache.- Specified by:
removeClientin interfaceTransactionBufferSnapshotService- Parameters:
topicName-TopicNamethe topic nametransactionBufferSystemTopicClient-TransactionBufferSystemTopicClientthe topic client
-
close
public void close() throws java.lang.ExceptionDescription copied from interface:TransactionBufferSnapshotServiceClose transaction buffer snapshot service.- Specified by:
closein interfaceTransactionBufferSnapshotService- Throws:
java.lang.Exception
-
-