Interface SystemTopicClient<T>

    • Method Detail

      • 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

        java.util.concurrent.CompletableFuture<SystemTopicClient.Reader<T>> 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

        java.util.concurrent.CompletableFuture<SystemTopicClient.Writer<T>> newWriterAsync()
        Create a writer for the system topic asynchronously.
      • close

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

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

        java.util.List<SystemTopicClient.Writer<T>> getWriters()
        Get all writers of the system topic.
        Returns:
        Set the set of writers
      • getReaders

        java.util.List<SystemTopicClient.Reader<T>> getReaders()
        Get all readers of the system topic.
        Returns:
        Set the set of readers