Interface SystemTopicClient.Writer<T>

Enclosing interface:
SystemTopicClient<T>

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

    Modifier and Type
    Method
    Description
    void
    Close the system topic writer.
    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 CompletableFuture<org.apache.pulsar.client.api.MessageId>
    Async delete event in the system topic.
    Get the system topic of the writer.
    org.apache.pulsar.client.api.MessageId
    write(T t)
    Write event to the system topic.
    CompletableFuture<org.apache.pulsar.client.api.MessageId>
    Async write event to the system topic.
  • Method Details

    • 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

      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 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 IOException
      Close the system topic writer.
      Throws:
      IOException
    • closeAsync

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

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