public class FlowStaticPersistable extends java.lang.Object implements Persistable
Constructor and Description |
---|
FlowStaticPersistable() |
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.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
|
public java.lang.String getSessionID()
Persistable
getSessionID
in interface Persistable
public java.lang.String getTypeID()
Persistable
getTypeID
in interface Persistable
public java.lang.String getWorkerID()
Persistable
getWorkerID
in interface Persistable
public long getTimeStamp()
Persistable
getTimeStamp
in interface Persistable
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