public final class LocalAddress extends SocketAddress implements Comparable<LocalAddress>
Modifier and Type | Field and Description |
---|---|
static LocalAddress |
ANY |
Constructor and Description |
---|
LocalAddress(Class<?> cls)
Creates a new instance with a random ID based on the given class.
|
LocalAddress(String id)
Creates a new instance with the specified ID.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(LocalAddress o) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
id()
Returns the ID of this address.
|
String |
toString() |
public static final LocalAddress ANY
public LocalAddress(String id)
public LocalAddress(Class<?> cls)
public String id()
public int compareTo(LocalAddress o)
compareTo
in interface Comparable<LocalAddress>
Copyright © 2008–2024 The Netty Project. All rights reserved.