Interface SystemTopicClient.Writer<T>

  • Enclosing interface:
    SystemTopicClient<T>

    public static interface SystemTopicClient.Writer<T>
    Writer for system topic.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void close()
      Close the system topic writer.
      java.util.concurrent.CompletableFuture<java.lang.Void> closeAsync()
      Close the writer of the system topic asynchronously.
      default org.apache.pulsar.client.api.MessageId delete​(T t)
      Delete event in the system topic.
      default java.util.concurrent.CompletableFuture<org.apache.pulsar.client.api.MessageId> deleteAsync​(T t)
      Async delete event in the system topic.
      SystemTopicClient<T> getSystemTopicClient()
      Get the system topic of the writer.
      org.apache.pulsar.client.api.MessageId write​(T t)
      Write event to the system topic.
      java.util.concurrent.CompletableFuture<org.apache.pulsar.client.api.MessageId> writeAsync​(T t)
      Async write event to the system topic.
    • Method Detail

      • write

        org.apache.pulsar.client.api.MessageId write​(T t)
                                              throws org.apache.pulsar.client.api.PulsarClientException
        Write event to the system topic.
        Parameters:
        t - pulsar event
        Returns:
        message id
        Throws:
        org.apache.pulsar.client.api.PulsarClientException - exception while write event cause
      • writeAsync

        java.util.concurrent.CompletableFuture<org.apache.pulsar.client.api.MessageId> writeAsync​(T t)
        Async write event to the system topic.
        Parameters:
        t - pulsar event
        Returns:
        message id future
      • delete

        default org.apache.pulsar.client.api.MessageId delete​(T t)
                                                       throws org.apache.pulsar.client.api.PulsarClientException
        Delete event in the system topic.
        Parameters:
        t - pulsar event
        Returns:
        message id
        Throws:
        org.apache.pulsar.client.api.PulsarClientException - exception while write event cause
      • deleteAsync

        default java.util.concurrent.CompletableFuture<org.apache.pulsar.client.api.MessageId> deleteAsync​(T t)
        Async delete event in the system topic.
        Parameters:
        t - pulsar event
        Returns:
        message id future
      • close

        void close()
            throws java.io.IOException
        Close the system topic writer.
        Throws:
        java.io.IOException
      • closeAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> closeAsync()
        Close the writer of the system topic asynchronously.
      • getSystemTopicClient

        SystemTopicClient<T> getSystemTopicClient()
        Get the system topic of the writer.
        Returns:
        system topic