Class ServiceDiscovery.ResolvedTarget

  • All Implemented Interfaces:
    NoSerializationVerificationNeeded
    Enclosing class:
    ServiceDiscovery

    public static final class ServiceDiscovery.ResolvedTarget
    extends java.lang.Object
    implements NoSerializationVerificationNeeded
    Resolved target host, with optional port and the IP address. param: host the hostname or the IP address of the target param: port optional port number param: address optional IP address of the target. This is used during cluster bootstap when available.
    • Constructor Summary

      Constructors 
      Constructor Description
      ResolvedTarget​(java.lang.String host, scala.Option<java.lang.Object> port, scala.Option<java.net.InetAddress> address)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      scala.Option<java.net.InetAddress> address()  
      boolean equals​(java.lang.Object obj)  
      java.util.Optional<java.net.InetAddress> getAddress()
      Java API
      java.util.Optional<java.lang.Object> getPort()
      Java API
      int hashCode()  
      java.lang.String host()  
      scala.Option<java.lang.Object> port()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ResolvedTarget

        public ResolvedTarget​(java.lang.String host,
                              scala.Option<java.lang.Object> port,
                              scala.Option<java.net.InetAddress> address)
    • Method Detail

      • host

        public java.lang.String host()
      • port

        public scala.Option<java.lang.Object> port()
      • address

        public scala.Option<java.net.InetAddress> address()
      • getPort

        public java.util.Optional<java.lang.Object> getPort()
        Java API
      • getAddress

        public java.util.Optional<java.net.InetAddress> getAddress()
        Java API
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object