Package io.quarkus.netty.runtime.virtual
Class VirtualAddress
- java.lang.Object
-
- java.net.SocketAddress
-
- io.quarkus.netty.runtime.virtual.VirtualAddress
-
- All Implemented Interfaces:
Serializable
,Comparable<VirtualAddress>
public final class VirtualAddress extends SocketAddress implements Comparable<VirtualAddress>
An endpoint in the local transport. Each endpoint is identified by a unique case-insensitive string.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static VirtualAddress
ANY
-
Constructor Summary
Constructors Constructor Description VirtualAddress(io.netty.channel.Channel channel)
Creates a new ephemeral port based on the ID of the specified channel.VirtualAddress(String id)
Creates a new instance with the specified ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(VirtualAddress o)
boolean
equals(Object o)
int
hashCode()
String
id()
Returns the ID of this address.String
toString()
-
-
-
Field Detail
-
ANY
public static final VirtualAddress ANY
-
-
Constructor Detail
-
VirtualAddress
VirtualAddress(io.netty.channel.Channel channel)
Creates a new ephemeral port based on the ID of the specified channel. Note that we prepend an upper-case character so that it never conflicts with the addresses created by a user, which are always lower-cased on construction time.
-
VirtualAddress
public VirtualAddress(String id)
Creates a new instance with the specified ID.
-
-
Method Detail
-
id
public String id()
Returns the ID of this address.
-
compareTo
public int compareTo(VirtualAddress o)
- Specified by:
compareTo
in interfaceComparable<VirtualAddress>
-
-