Interface SystemTopicClient.Writer<T>
- Enclosing interface:
- SystemTopicClient<T>
public static interface SystemTopicClient.Writer<T>
Writer for system topic.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the system topic writer.Close the writer of the system topic asynchronously.default org.apache.pulsar.client.api.MessageIdDelete event in the system topic.default CompletableFuture<org.apache.pulsar.client.api.MessageId>deleteAsync(T t) Async delete event in the system topic.Get the system topic of the writer.org.apache.pulsar.client.api.MessageIdWrite event to the system topic.CompletableFuture<org.apache.pulsar.client.api.MessageId>writeAsync(T t) 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
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
Async delete event in the system topic.- Parameters:
t- pulsar event- Returns:
- message id future
-
close
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
-