public class JavaStorageMetaData extends java.lang.Object implements StorageMetaData
Constructor and Description |
---|
JavaStorageMetaData() |
JavaStorageMetaData(long timeStamp,
java.lang.String sessionID,
java.lang.String typeID,
java.lang.String workerID,
java.lang.Class<?> initType,
java.lang.Class<?> updateType) |
JavaStorageMetaData(long timeStamp,
java.lang.String sessionID,
java.lang.String typeID,
java.lang.String workerID,
java.lang.String initTypeClass,
java.lang.String updateTypeClass) |
JavaStorageMetaData(long timeStamp,
java.lang.String sessionID,
java.lang.String typeID,
java.lang.String workerID,
java.lang.String initTypeClass,
java.lang.String updateTypeClass,
java.io.Serializable extraMetaData) |
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
Persistable.encode()
Length may be different using Persistable.encode(OutputStream) , due to things like stream headers |
java.io.Serializable |
getExtraMetaData()
Get extra metadata, if any
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInitTypeClass, getSessionID, getTimeStamp, getTypeID, getUpdateTypeClass, getWorkerID
public JavaStorageMetaData()
public JavaStorageMetaData(long timeStamp, java.lang.String sessionID, java.lang.String typeID, java.lang.String workerID, java.lang.Class<?> initType, java.lang.Class<?> updateType)
public JavaStorageMetaData(long timeStamp, java.lang.String sessionID, java.lang.String typeID, java.lang.String workerID, java.lang.String initTypeClass, java.lang.String updateTypeClass)
public JavaStorageMetaData(long timeStamp, java.lang.String sessionID, java.lang.String typeID, java.lang.String workerID, java.lang.String initTypeClass, java.lang.String updateTypeClass, java.io.Serializable extraMetaData)
public int encodingLengthBytes()
Persistable
Persistable.encode()
Length may be different using Persistable.encode(OutputStream)
, due to things like stream headersencodingLengthBytes
in interface Persistable
public byte[] encode()
encode
in interface Persistable
public void encode(java.nio.ByteBuffer buffer)
Persistable
ByteBuffer
encode
in interface Persistable
public void encode(java.io.OutputStream outputStream) throws java.io.IOException
Persistable
encode
in interface Persistable
java.io.IOException
public void decode(byte[] decode)
Persistable
decode
in interface Persistable
public void decode(java.nio.ByteBuffer buffer)
Persistable
ByteBuffer
decode
in interface Persistable
public void decode(java.io.InputStream inputStream) throws java.io.IOException
Persistable
decode
in interface Persistable
java.io.IOException
public java.io.Serializable getExtraMetaData()
StorageMetaData
getExtraMetaData
in interface StorageMetaData