Interface SystemTopicClient<T>
-
- All Known Implementing Classes:
SystemTopicClientBase,TopicPoliciesSystemTopicClient,TransactionBufferSystemTopicClient
public interface SystemTopicClient<T>Pulsar system topic.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceSystemTopicClient.Reader<T>Reader for system topic.static interfaceSystemTopicClient.Writer<T>Writer for system topic.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the system topic.java.util.concurrent.CompletableFuture<java.lang.Void>closeAsync()Close the system topic asynchronously.java.util.List<SystemTopicClient.Reader<T>>getReaders()Get all readers of the system topic.org.apache.pulsar.common.naming.TopicNamegetTopicName()Get topic name of the system topic.java.util.List<SystemTopicClient.Writer<T>>getWriters()Get all writers of the system topic.SystemTopicClient.Reader<T>newReader()Create a reader for the system topic.java.util.concurrent.CompletableFuture<SystemTopicClient.Reader<T>>newReaderAsync()Create a reader for the system topic asynchronously.SystemTopicClient.Writer<T>newWriter()Create a writer for the system topic.java.util.concurrent.CompletableFuture<SystemTopicClient.Writer<T>>newWriterAsync()Create a writer for the system topic asynchronously.
-
-
-
Method Detail
-
getTopicName
org.apache.pulsar.common.naming.TopicName getTopicName()
Get topic name of the system topic.- Returns:
- topic name
-
newReader
SystemTopicClient.Reader<T> newReader() throws org.apache.pulsar.client.api.PulsarClientException
Create a reader for the system topic.- Returns:
- a new reader for the system topic
- Throws:
org.apache.pulsar.client.api.PulsarClientException
-
newReaderAsync
java.util.concurrent.CompletableFuture<SystemTopicClient.Reader<T>> newReaderAsync()
Create a reader for the system topic asynchronously.
-
newWriter
SystemTopicClient.Writer<T> newWriter() throws org.apache.pulsar.client.api.PulsarClientException
Create a writer for the system topic.- Returns:
- writer for the system topic
- Throws:
org.apache.pulsar.client.api.PulsarClientException
-
newWriterAsync
java.util.concurrent.CompletableFuture<SystemTopicClient.Writer<T>> newWriterAsync()
Create a writer for the system topic asynchronously.
-
close
void close() throws java.lang.ExceptionClose the system topic.- Throws:
java.lang.Exception
-
closeAsync
java.util.concurrent.CompletableFuture<java.lang.Void> closeAsync()
Close the system topic asynchronously.- Returns:
-
getWriters
java.util.List<SystemTopicClient.Writer<T>> getWriters()
Get all writers of the system topic.- Returns:
Setthe set of writers
-
getReaders
java.util.List<SystemTopicClient.Reader<T>> getReaders()
Get all readers of the system topic.- Returns:
Setthe set of readers
-
-