public interface Persistable
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
decode(byte[] decode)
Decode the content of the given
byte array in to this persistable
|
void |
decode(java.nio.ByteBuffer buffer)
Decode from the given
ByteBuffer |
void |
decode(java.io.InputStream inputStream)
Decode from the given input stream
|
byte[] |
encode() |
void |
encode(java.nio.ByteBuffer buffer)
Encode this persistable in to a
ByteBuffer |
void |
encode(java.io.OutputStream outputStream)
Encode this persistable in to an output stream
|
int |
encodingLengthBytes()
Length of the encoding, in bytes, when using
encode()
Length may be different using encode(OutputStream), due to things like stream headers |
java.lang.String |
getSessionID()
Get the session id
|
long |
getTimeStamp()
Get when this was created.
|
java.lang.String |
getTypeID()
Get the type id
|
java.lang.String |
getWorkerID()
Get the worker id
|
java.lang.String getSessionID()
java.lang.String getTypeID()
java.lang.String getWorkerID()
long getTimeStamp()
int encodingLengthBytes()
encode()
Length may be different using encode(OutputStream), due to things like stream headersbyte[] encode()
void encode(java.nio.ByteBuffer buffer)
ByteBufferbuffer - void encode(java.io.OutputStream outputStream)
throws java.io.IOException
outputStream - java.io.IOExceptionvoid decode(byte[] decode)
decode - void decode(java.nio.ByteBuffer buffer)
ByteBufferbuffer - void decode(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - java.io.IOException