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()
PersistablegetSessionID in interface Persistablepublic java.lang.String getTypeID()
PersistablegetTypeID in interface Persistablepublic java.lang.String getWorkerID()
PersistablegetWorkerID in interface Persistablepublic long getTimeStamp()
PersistablegetTimeStamp in interface Persistablepublic int encodingLengthBytes()
PersistablePersistable.encode()
Length may be different using Persistable.encode(OutputStream), due to things like stream headersencodingLengthBytes in interface Persistablepublic byte[] encode()
encode in interface Persistablepublic void encode(java.nio.ByteBuffer buffer)
PersistableByteBufferencode in interface Persistablepublic void encode(java.io.OutputStream outputStream)
throws java.io.IOException
Persistableencode in interface Persistablejava.io.IOExceptionpublic void decode(byte[] decode)
Persistabledecode in interface Persistablepublic void decode(java.nio.ByteBuffer buffer)
PersistableByteBufferdecode in interface Persistablepublic void decode(java.io.InputStream inputStream)
throws java.io.IOException
Persistabledecode in interface Persistablejava.io.IOException