public class PayloadUUID 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 String |
payload |
additional_data, cache, leastSigBits, mostSigBits, numberGenerator, print_function, print_uuids, SIZE| Modifier | Constructor and Description |
|---|---|
|
PayloadUUID() |
protected |
PayloadUUID(byte[] data,
String payload) |
| Modifier and Type | Method and Description |
|---|---|
protected static byte[] |
generateRandomBytes() |
String |
getPayload() |
static PayloadUUID |
randomUUID(String payload) |
static PayloadUUID |
randomUUID(String logical_name,
String 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
|
void |
setPayload(String payload) |
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, toStringLongprotected String payload
public PayloadUUID()
protected PayloadUUID(byte[] data,
String payload)
public static PayloadUUID randomUUID(String payload)
public static PayloadUUID randomUUID(String logical_name, String payload)
public String getPayload()
public void setPayload(String payload)
protected static byte[] generateRandomBytes()
public int size()
Addresspublic void writeTo(DataOutputStream out) throws IOException
StreamablewriteTo in interface StreamablewriteTo in class UUIDIOExceptionpublic void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException
StreamablereadFrom in interface StreamablereadFrom in class UUIDIOExceptionIllegalAccessExceptionInstantiationExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class UUIDIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class UUIDIOExceptionCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.