Class ServiceDiscovery.ResolvedTarget

  • All Implemented Interfaces:
    Enclosing class:

    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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      scala.Option<> address()  
      boolean equals​(java.lang.Object obj)  
      java.util.Optional<> 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<> address)
    • Method Detail

      • host

        public java.lang.String host()
      • port

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

        public scala.Option<> address()
      • getPort

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

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

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

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

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