Interface ServiceNameResolver

All Known Implementing Classes:
PulsarServiceNameResolver

public interface ServiceNameResolver
A service name resolver to resolve real socket address.
  • Method Details

    • resolveHost

      InetSocketAddress resolveHost()
      Resolve pulsar service url.
      Returns:
      resolve the service url to return a socket address
    • resolveHostUri

      URI resolveHostUri()
      Resolve pulsar service url.
      Returns:
    • getServiceUrl

      String getServiceUrl()
      Get service url.
      Returns:
      service url
    • getServiceUri

      org.apache.pulsar.common.net.ServiceURI getServiceUri()
      Get service uri.
      Returns:
      service uri
    • updateServiceUrl

      void updateServiceUrl(String serviceUrl) throws org.apache.pulsar.client.api.PulsarClientException.InvalidServiceURL
      Update service url.
      Parameters:
      serviceUrl - service url
      Throws:
      org.apache.pulsar.client.api.PulsarClientException.InvalidServiceURL