An address that fails with the given cause
.
An address represented by an Internet socket address.
Create a new loopback Address with the given port
.
Create a new Address with given host
and port
.
Create a new Address with given java.net.InetSocketAddress.
An ordering of Addresses based on a deterministic hash of their IP and port.
An ordering of Addresses based on a deterministic hash of their IP and port.
In order to keep this hash ordering deterministic, it's important that we avoid hash collisions for non-equal inputs. We do this by using a murmur hash under the hood which is known to not have collisions for 32-bit inputs. However, if the underlying addresses were to be 128-bit (IPv6), we would lose that property.