public abstract class SystemTopicClientBase extends Object implements SystemTopicClient
SystemTopicClient.Reader, SystemTopicClient.Writer| Modifier and Type | Field and Description |
|---|---|
protected org.apache.pulsar.client.api.PulsarClient |
client |
protected List<SystemTopicClient.Reader> |
readers |
protected org.apache.pulsar.common.naming.TopicName |
topicName |
protected List<SystemTopicClient.Writer> |
writers |
| Constructor and Description |
|---|
SystemTopicClientBase(org.apache.pulsar.client.api.PulsarClient client,
org.apache.pulsar.common.naming.TopicName topicName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the system topic
|
CompletableFuture<Void> |
closeAsync()
Close the system topic asynchronously.
|
List<SystemTopicClient.Reader> |
getReaders()
Get all readers of the system topic
|
org.apache.pulsar.common.naming.TopicName |
getTopicName()
Get topic name of the system topic.
|
List<SystemTopicClient.Writer> |
getWriters()
Get all writers of the system topic
|
SystemTopicClient.Reader |
newReader()
Create a reader for the system topic.
|
CompletableFuture<SystemTopicClient.Reader> |
newReaderAsync()
Create a reader for the system topic asynchronously.
|
protected abstract CompletableFuture<SystemTopicClient.Reader> |
newReaderAsyncInternal() |
SystemTopicClient.Writer |
newWriter()
Create a writer for the system topic.
|
CompletableFuture<SystemTopicClient.Writer> |
newWriterAsync()
Create a writer for the system topic asynchronously.
|
protected abstract CompletableFuture<SystemTopicClient.Writer> |
newWriterAsyncInternal() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSystemTopicprotected final org.apache.pulsar.common.naming.TopicName topicName
protected final org.apache.pulsar.client.api.PulsarClient client
protected final List<SystemTopicClient.Writer> writers
protected final List<SystemTopicClient.Reader> readers
public SystemTopicClientBase(org.apache.pulsar.client.api.PulsarClient client,
org.apache.pulsar.common.naming.TopicName topicName)
public SystemTopicClient.Reader newReader() throws org.apache.pulsar.client.api.PulsarClientException
SystemTopicClientnewReader in interface SystemTopicClientorg.apache.pulsar.client.api.PulsarClientExceptionpublic CompletableFuture<SystemTopicClient.Reader> newReaderAsync()
SystemTopicClientnewReaderAsync in interface SystemTopicClientpublic SystemTopicClient.Writer newWriter() throws org.apache.pulsar.client.api.PulsarClientException
SystemTopicClientnewWriter in interface SystemTopicClientorg.apache.pulsar.client.api.PulsarClientExceptionpublic CompletableFuture<SystemTopicClient.Writer> newWriterAsync()
SystemTopicClientnewWriterAsync in interface SystemTopicClientprotected abstract CompletableFuture<SystemTopicClient.Writer> newWriterAsyncInternal()
protected abstract CompletableFuture<SystemTopicClient.Reader> newReaderAsyncInternal()
public CompletableFuture<Void> closeAsync()
SystemTopicClientcloseAsync in interface SystemTopicClientpublic void close()
throws Exception
SystemTopicClientclose in interface SystemTopicClientExceptionpublic org.apache.pulsar.common.naming.TopicName getTopicName()
SystemTopicClientgetTopicName in interface SystemTopicClientpublic List<SystemTopicClient.Reader> getReaders()
SystemTopicClientgetReaders in interface SystemTopicClientpublic List<SystemTopicClient.Writer> getWriters()
SystemTopicClientgetWriters in interface SystemTopicClientCopyright © 2017–2021 Apache Software Foundation. All rights reserved.