Interface SystemTopicClient<T>
- All Known Implementing Classes:
SystemTopicClientBase,TopicPoliciesSystemTopicClient,TransactionBufferSystemTopicClient
public interface SystemTopicClient<T>
Pulsar system topic.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceReader for system topic.static interfaceWriter for system topic. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the system topic.Close the system topic asynchronously.Get all readers of the system topic.org.apache.pulsar.common.naming.TopicNameGet topic name of the system topic.Get all writers of the system topic.Create a reader for the system topic.Create a reader for the system topic asynchronously.Create a writer for the system topic.Create a writer for the system topic asynchronously.
-
Method Details
-
getTopicName
org.apache.pulsar.common.naming.TopicName getTopicName()Get topic name of the system topic.- Returns:
- topic name
-
newReader
Create a reader for the system topic.- Returns:
- a new reader for the system topic
- Throws:
org.apache.pulsar.client.api.PulsarClientException
-
newReaderAsync
CompletableFuture<SystemTopicClient.Reader<T>> newReaderAsync()Create a reader for the system topic asynchronously. -
newWriter
Create a writer for the system topic.- Returns:
- writer for the system topic
- Throws:
org.apache.pulsar.client.api.PulsarClientException
-
newWriterAsync
CompletableFuture<SystemTopicClient.Writer<T>> newWriterAsync()Create a writer for the system topic asynchronously. -
close
Close the system topic.- Throws:
Exception
-
closeAsync
CompletableFuture<Void> closeAsync()Close the system topic asynchronously.- Returns:
-
getWriters
List<SystemTopicClient.Writer<T>> getWriters()Get all writers of the system topic.- Returns:
Setthe set of writers
-
getReaders
List<SystemTopicClient.Reader<T>> getReaders()Get all readers of the system topic.- Returns:
Setthe set of readers
-