public class RedisNegativityMessage extends Object implements NegativityMessage
Modifier and Type | Field and Description |
---|---|
static byte |
MESSAGE_ID |
Constructor and Description |
---|
RedisNegativityMessage() |
RedisNegativityMessage(UUID uuid,
String proxyId,
NegativityMessage message) |
Modifier and Type | Method and Description |
---|---|
NegativityMessage |
getMessage() |
String |
getProxyId() |
UUID |
getUUID() |
byte |
messageId()
Get the negativity message ID
|
void |
readFrom(DataInputStream input)
Read the message from the input stream
|
void |
writeTo(DataOutputStream output)
Write the message from the input stream
|
public static final byte MESSAGE_ID
public RedisNegativityMessage()
public RedisNegativityMessage(UUID uuid, String proxyId, NegativityMessage message)
public NegativityMessage getMessage()
public UUID getUUID()
public String getProxyId()
public byte messageId()
NegativityMessage
messageId
in interface NegativityMessage
public void readFrom(DataInputStream input) throws IOException
NegativityMessage
readFrom
in interface NegativityMessage
input
- the input stream which contains the negativity messageIOException
- if there is an exceptionpublic void writeTo(DataOutputStream output) throws IOException
NegativityMessage
writeTo
in interface NegativityMessage
output
- the output stream which contains the negativity messageIOException
- if there is an exception