Package org.apache.pekko.discovery
Class ServiceDiscovery.ResolvedTarget
- java.lang.Object
-
- org.apache.pekko.discovery.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 APIjava.util.Optional<java.lang.Object>
getPort()
Java APIint
hashCode()
java.lang.String
host()
scala.Option<java.lang.Object>
port()
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-