Interface ServiceNameResolver

  • All Known Implementing Classes:
    PulsarServiceNameResolver

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

      • resolveHost

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

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

        java.lang.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​(java.lang.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