public class AdditionalDataUUID extends UUID
UUID
which adds a string as payload. An instance of this can be fed to
JChannel.setAddressGenerator(org.jgroups.stack.AddressGenerator)
, with the address generator
creating PayloadUUIDs.Modifier and Type | Field and Description |
---|---|
protected byte[] |
payload |
additional_data, cache, leastSigBits, mostSigBits, numberGenerator, print_function, print_uuids, SIZE
Modifier | Constructor and Description |
---|---|
|
AdditionalDataUUID() |
protected |
AdditionalDataUUID(byte[] data,
byte[] payload) |
Modifier and Type | Method and Description |
---|---|
protected static byte[] |
generateRandomBytes() |
static AdditionalDataUUID |
randomUUID(byte[] payload) |
static AdditionalDataUUID |
randomUUID(String logical_name,
byte[] payload) |
void |
readExternal(ObjectInput in) |
void |
readFrom(DataInputStream 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(DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream.
|
add, add, clone, compareTo, digits, equals, get, getAdditionalData, getContents, getLeastSignificantBits, getMostSignificantBits, hashCode, isMulticastAddress, printCache, randomUUID, remove, removeAll, retainAll, setAdditionalData, toStringLong
public AdditionalDataUUID()
protected AdditionalDataUUID(byte[] data, byte[] payload)
public static AdditionalDataUUID randomUUID(byte[] payload)
public static AdditionalDataUUID randomUUID(String logical_name, byte[] payload)
protected static byte[] generateRandomBytes()
public int size()
Address
public void writeTo(DataOutputStream out) throws IOException
Streamable
writeTo
in interface Streamable
writeTo
in class UUID
IOException
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException
Streamable
readFrom
in interface Streamable
readFrom
in class UUID
IOException
IllegalAccessException
InstantiationException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class UUID
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class UUID
IOException
ClassNotFoundException
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.