Class PulsarServiceNameResolver

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.pulsar.common.net.ServiceURI getServiceUri()
      Get service uri.
      java.lang.String getServiceUrl()
      Get service url.
      java.net.InetSocketAddress resolveHost()
      Resolve pulsar service url.
      java.net.URI resolveHostUri()
      Resolve pulsar service url.
      void updateServiceUrl​(java.lang.String serviceUrl)
      Update service url.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PulsarServiceNameResolver

        public PulsarServiceNameResolver()
    • Method Detail

      • resolveHost

        public java.net.InetSocketAddress resolveHost()
        Description copied from interface: ServiceNameResolver
        Resolve pulsar service url.
        Specified by:
        resolveHost in interface ServiceNameResolver
        Returns:
        resolve the service url to return a socket address
      • updateServiceUrl

        public void updateServiceUrl​(java.lang.String serviceUrl)
                              throws org.apache.pulsar.client.api.PulsarClientException.InvalidServiceURL
        Description copied from interface: ServiceNameResolver
        Update service url.
        Specified by:
        updateServiceUrl in interface ServiceNameResolver
        Parameters:
        serviceUrl - service url
        Throws:
        org.apache.pulsar.client.api.PulsarClientException.InvalidServiceURL