T - the type of the wrapped Serializable.public class SerializableWrapper<T extends Serializable> extends Object implements SnapshotSupport
Serializable object providing SnapshotSupport to be used in a
StreamProcessor.
NOTE: obviously all the known caveats around java serialization apply to this class. Or on other words: do not use this outside of demo applications.
| Constructor and Description |
|---|
SerializableWrapper(T object) |
| Modifier and Type | Method and Description |
|---|---|
T |
getObject() |
void |
recoverFromSnapshot(InputStream inputStream)
read a snapshot from the provided input stream.
|
void |
reset()
Set the snapshot in the initial state.
|
long |
writeSnapshot(OutputStream outputStream)
write a snapshot to the provided output stream
|
protected T extends Serializable object
public SerializableWrapper(T object)
public T getObject()
public long writeSnapshot(OutputStream outputStream) throws Exception
SnapshotSupportwriteSnapshot in interface SnapshotSupportoutputStream - the stream to write toExceptionpublic void recoverFromSnapshot(InputStream inputStream) throws Exception
SnapshotSupportrecoverFromSnapshot in interface SnapshotSupportinputStream - the stream to read fromExceptionpublic void reset()
SnapshotSupportreset in interface SnapshotSupportCopyright © 2017–2018 camunda services GmbH. All rights reserved.