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>
An endpoint in the local transport. Each endpoint is identified by a unique
case-insensitive string.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVirtualAddress
(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
-
Field Details
-
ANY
-
-
Constructor Details
-
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
Creates a new instance with the specified ID.
-
-
Method Details
-
id
Returns the ID of this address. -
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<VirtualAddress>
-
toString
-