Package org.apache.pulsar.broker.service
Class SystemTopicTxnBufferSnapshotService<T>
java.lang.Object
org.apache.pulsar.broker.service.SystemTopicTxnBufferSnapshotService<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConcurrentHashMap<org.apache.pulsar.common.naming.NamespaceName,SystemTopicClient<T>> protected final NamespaceEventsSystemTopicFactoryprotected final org.apache.pulsar.common.events.EventType -
Constructor Summary
ConstructorsConstructorDescriptionSystemTopicTxnBufferSnapshotService(PulsarService pulsar, org.apache.pulsar.common.events.EventType systemTopicType, Class<T> schemaType) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createReader(org.apache.pulsar.common.naming.TopicName topicName) getReferenceWriter(org.apache.pulsar.common.naming.NamespaceName namespaceName) voidremoveClient(org.apache.pulsar.common.naming.TopicName topicName, SystemTopicClientBase<T> transactionBufferSystemTopicClient)
-
Field Details
-
clients
protected final ConcurrentHashMap<org.apache.pulsar.common.naming.NamespaceName,SystemTopicClient<T>> clients -
namespaceEventsSystemTopicFactory
-
schemaType
-
systemTopicType
protected final org.apache.pulsar.common.events.EventType systemTopicType
-
-
Constructor Details
-
SystemTopicTxnBufferSnapshotService
public SystemTopicTxnBufferSnapshotService(PulsarService pulsar, org.apache.pulsar.common.events.EventType systemTopicType, Class<T> schemaType) throws PulsarServerException - Throws:
PulsarServerException
-
-
Method Details
-
createReader
public CompletableFuture<SystemTopicClient.Reader<T>> createReader(org.apache.pulsar.common.naming.TopicName topicName) -
removeClient
public void removeClient(org.apache.pulsar.common.naming.TopicName topicName, SystemTopicClientBase<T> transactionBufferSystemTopicClient) -
getReferenceWriter
public SystemTopicTxnBufferSnapshotService.ReferenceCountedWriter<T> getReferenceWriter(org.apache.pulsar.common.naming.NamespaceName namespaceName) -
close
- Throws:
Exception
-