public static interface SystemTopicClient.Writer<T>
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the system topic writer.
|
CompletableFuture<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 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.
|
CompletableFuture<org.apache.pulsar.client.api.MessageId> |
writeAsync(T t)
Async write event to the system topic.
|
org.apache.pulsar.client.api.MessageId write(T t) throws org.apache.pulsar.client.api.PulsarClientException
t - pulsar eventorg.apache.pulsar.client.api.PulsarClientException - exception while write event causeCompletableFuture<org.apache.pulsar.client.api.MessageId> writeAsync(T t)
t - pulsar eventdefault org.apache.pulsar.client.api.MessageId delete(T t) throws org.apache.pulsar.client.api.PulsarClientException
t - pulsar eventorg.apache.pulsar.client.api.PulsarClientException - exception while write event causedefault CompletableFuture<org.apache.pulsar.client.api.MessageId> deleteAsync(T t)
t - pulsar eventvoid close()
throws IOException
IOExceptionCompletableFuture<Void> closeAsync()
SystemTopicClient<T> getSystemTopicClient()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.