类 BinaryProtoLookupService
java.lang.Object
org.apache.pulsar.client.impl.BinaryProtoLookupService
- 所有已实现的接口:
AutoCloseable,LookupService
-
嵌套类概要
嵌套类 -
构造器概要
构造器构造器说明BinaryProtoLookupService(PulsarClientImpl client, String serviceUrl, boolean useTls, ExecutorService executor) BinaryProtoLookupService(PulsarClientImpl client, String serviceUrl, String listenerName, boolean useTls, ExecutorService executor) -
方法概要
修饰符和类型方法说明voidclose()Calls broker binaryProto-lookup api to find broker-service address which can serve a given topic.CompletableFuture<org.apache.pulsar.common.partition.PartitionedTopicMetadata>getPartitionedTopicMetadata(TopicName topicName) calls broker binaryProto-lookup api to get metadata of partitioned-topic.Returns current SchemaInfoSchemaInfofor a given topic.Returns specific version SchemaInfoSchemaInfofor a given topic.Returns broker-service lookup api url.getTopicsUnderNamespace(NamespaceName namespace, CommandGetTopicsOfNamespace.Mode mode, String topicsPattern, String topicsHash) Returns all the topics name for a given namespace.Resolves pulsar service url.voidupdateServiceUrl(String serviceUrl) Instruct the LookupService to switch to a new service URL for all subsequent requests.
-
构造器详细资料
-
BinaryProtoLookupService
public BinaryProtoLookupService(PulsarClientImpl client, String serviceUrl, boolean useTls, ExecutorService executor) throws PulsarClientException -
BinaryProtoLookupService
public BinaryProtoLookupService(PulsarClientImpl client, String serviceUrl, String listenerName, boolean useTls, ExecutorService executor) throws PulsarClientException
-
-
方法详细资料
-
updateServiceUrl
从接口复制的说明:LookupServiceInstruct the LookupService to switch to a new service URL for all subsequent requests.- 指定者:
updateServiceUrl在接口中LookupService- 抛出:
PulsarClientException
-
getBroker
Calls broker binaryProto-lookup api to find broker-service address which can serve a given topic.- 指定者:
getBroker在接口中LookupService- 参数:
topicName- topic-name- 返回:
- broker-socket-address that serves given topic
-
getPartitionedTopicMetadata
public CompletableFuture<org.apache.pulsar.common.partition.PartitionedTopicMetadata> getPartitionedTopicMetadata(TopicName topicName) calls broker binaryProto-lookup api to get metadata of partitioned-topic.- 指定者:
getPartitionedTopicMetadata在接口中LookupService- 参数:
topicName- topic-name- 返回:
-
getSchema
从接口复制的说明:LookupServiceReturns current SchemaInfoSchemaInfofor a given topic.- 指定者:
getSchema在接口中LookupService- 参数:
topicName- topic-name- 返回:
- SchemaInfo
-
getSchema
从接口复制的说明:LookupServiceReturns specific version SchemaInfoSchemaInfofor a given topic.- 指定者:
getSchema在接口中LookupService- 参数:
topicName- topic-nameversion- schema info version- 返回:
- SchemaInfo
-
getServiceUrl
从接口复制的说明:LookupServiceReturns broker-service lookup api url.- 指定者:
getServiceUrl在接口中LookupService- 返回:
-
resolveHost
从接口复制的说明:LookupServiceResolves pulsar service url.- 指定者:
resolveHost在接口中LookupService- 返回:
- the service url resolved to a socket address
-
getTopicsUnderNamespace
public CompletableFuture<GetTopicsResult> getTopicsUnderNamespace(NamespaceName namespace, CommandGetTopicsOfNamespace.Mode mode, String topicsPattern, String topicsHash) 从接口复制的说明:LookupServiceReturns all the topics name for a given namespace.- 指定者:
getTopicsUnderNamespace在接口中LookupService- 参数:
namespace- : namespace-name- 返回:
-
close
- 指定者:
close在接口中AutoCloseable- 抛出:
Exception
-