public static interface SystemTopicClient.Writer
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the system topic writer.
|
CompletableFuture<Void> |
closeAsync()
Close the writer of the system topic asynchronously.
|
SystemTopicClient |
getSystemTopicClient()
Get the system topic of the writer
|
org.apache.pulsar.client.api.MessageId |
write(org.apache.pulsar.common.events.PulsarEvent event)
Write event to the system topic
|
CompletableFuture<org.apache.pulsar.client.api.MessageId> |
writeAsync(org.apache.pulsar.common.events.PulsarEvent event)
Async write event to the system topic
|
org.apache.pulsar.client.api.MessageId write(org.apache.pulsar.common.events.PulsarEvent event)
throws org.apache.pulsar.client.api.PulsarClientException
event - pulsar eventorg.apache.pulsar.client.api.PulsarClientException - exception while write event causeCompletableFuture<org.apache.pulsar.client.api.MessageId> writeAsync(org.apache.pulsar.common.events.PulsarEvent event)
event - pulsar eventvoid close()
throws IOException
IOExceptionCompletableFuture<Void> closeAsync()
SystemTopicClient getSystemTopicClient()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.