public class SingletonAddress extends Object implements Address
| Modifier and Type | Field and Description |
|---|---|
protected Address |
addr |
protected byte[] |
cluster_name |
| Constructor and Description |
|---|
SingletonAddress() |
SingletonAddress(byte[] cluster_name,
Address addr) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Address o) |
protected static int |
compareTo(byte[] v1,
byte[] v2) |
boolean |
equals(Object obj) |
Address |
getAddress() |
byte[] |
getClusterName() |
protected int |
hash() |
int |
hashCode() |
void |
readExternal(ObjectInput in) |
void |
readFrom(DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
size()
Returns serialized size of this address
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
protected final byte[] cluster_name
protected final Address addr
public SingletonAddress(byte[] cluster_name,
Address addr)
public SingletonAddress()
public Address getAddress()
public byte[] getClusterName()
public int size()
Addresspublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void writeTo(DataOutput out) throws Exception
StreamablewriteTo in interface StreamableExceptionpublic void readFrom(DataInput in) throws Exception
StreamablereadFrom in interface StreamableExceptionpublic int compareTo(Address o)
compareTo in interface Comparable<Address>protected int hash()
protected static int compareTo(byte[] v1,
byte[] v2)
Copyright © 2025 JBoss, a division of Red Hat. All rights reserved.