public class SbeStorageMetaData extends java.lang.Object implements StorageMetaData, AgronaPersistable
Constructor and Description |
---|
SbeStorageMetaData() |
SbeStorageMetaData(long timeStamp,
java.lang.String sessionID,
java.lang.String typeID,
java.lang.String workerID,
java.lang.Class<?> initType,
java.lang.Class<?> updateType) |
SbeStorageMetaData(long timeStamp,
java.lang.String sessionID,
java.lang.String typeID,
java.lang.String workerID,
java.lang.String initTypeClass,
java.lang.String updateTypeClass) |
SbeStorageMetaData(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(org.agrona.DirectBuffer buffer) |
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(org.agrona.MutableDirectBuffer buffer) |
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 SbeStorageMetaData()
public SbeStorageMetaData(long timeStamp, java.lang.String sessionID, java.lang.String typeID, java.lang.String workerID, java.lang.Class<?> initType, java.lang.Class<?> updateType)
public SbeStorageMetaData(long timeStamp, java.lang.String sessionID, java.lang.String typeID, java.lang.String workerID, java.lang.String initTypeClass, java.lang.String updateTypeClass)
public SbeStorageMetaData(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 java.io.Serializable getExtraMetaData()
StorageMetaData
getExtraMetaData
in interface StorageMetaData
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(org.agrona.MutableDirectBuffer buffer)
encode
in interface AgronaPersistable
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(org.agrona.DirectBuffer buffer)
decode
in interface AgronaPersistable
public void decode(java.io.InputStream inputStream) throws java.io.IOException
Persistable
decode
in interface Persistable
java.io.IOException