Package org.jboss.netty.channel.local
Class LocalAddress
java.lang.Object
java.net.SocketAddress
org.jboss.netty.channel.local.LocalAddress
- All Implemented Interfaces:
Serializable,Comparable<LocalAddress>
An endpoint in the local transport. Each endpoint is identified by a unique
case-insensitive string, except for the pre-defined value called
"ephemeral".
Ephemeral Address
An ephemeral address is an anonymous address which is assigned temporarily and is released as soon as the connection is closed. All ephemeral addresses have the same ID,"ephemeral", but they are not equal to each other.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLocalAddress(int id) Creates a new instance with the specified ID.LocalAddress(String id) Creates a new instance with the specified ID. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
EPHEMERAL
- See Also:
-
id
-
ephemeral
private final boolean ephemeral
-
-
Constructor Details
-
LocalAddress
public LocalAddress(int id) Creates a new instance with the specified ID. -
LocalAddress
Creates a new instance with the specified ID.
-
-
Method Details
-
getId
Returns the ID of this address. -
isEphemeral
public boolean isEphemeral()Returnstrueif and only if this address is ephemeral. -
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<LocalAddress>
-
toString
-