Interface SystemTopicClient<T>

All Known Implementing Classes:
SystemTopicClientBase, TopicPoliciesSystemTopicClient, TransactionBufferSystemTopicClient

public interface SystemTopicClient<T>
Pulsar system topic.
  • Method Details

    • getTopicName

      org.apache.pulsar.common.naming.TopicName getTopicName()
      Get topic name of the system topic.
      Returns:
      topic name
    • newReader

      SystemTopicClient.Reader<T> newReader() throws org.apache.pulsar.client.api.PulsarClientException
      Create a reader for the system topic.
      Returns:
      a new reader for the system topic
      Throws:
      org.apache.pulsar.client.api.PulsarClientException
    • newReaderAsync

      Create a reader for the system topic asynchronously.
    • newWriter

      SystemTopicClient.Writer<T> newWriter() throws org.apache.pulsar.client.api.PulsarClientException
      Create a writer for the system topic.
      Returns:
      writer for the system topic
      Throws:
      org.apache.pulsar.client.api.PulsarClientException
    • newWriterAsync

      Create a writer for the system topic asynchronously.
    • close

      void close() throws Exception
      Close the system topic.
      Throws:
      Exception
    • closeAsync

      CompletableFuture<Void> closeAsync()
      Close the system topic asynchronously.
      Returns:
    • getWriters

      Get all writers of the system topic.
      Returns:
      Set the set of writers
    • getReaders

      Get all readers of the system topic.
      Returns:
      Set the set of readers