public class UnpackedObjectSnapshotSupport extends Object implements ComposableSnapshotSupport
| Modifier and Type | Field and Description |
|---|---|
protected org.agrona.ExpandableArrayBuffer |
ioBuffer |
protected UnpackedObject |
object |
protected io.zeebe.msgpack.spec.MsgPackReader |
reader |
protected io.zeebe.msgpack.spec.MsgPackWriter |
writer |
| Constructor and Description |
|---|
UnpackedObjectSnapshotSupport(UnpackedObject object) |
| Modifier and Type | Method and Description |
|---|---|
void |
recoverFromSnapshot(InputStream inputStream)
read a snapshot from the provided input stream.
|
void |
reset()
Set the snapshot in the initial state.
|
long |
snapshotSize() |
long |
writeSnapshot(OutputStream outputStream)
write a snapshot to the provided output stream
|
protected final UnpackedObject object
protected final io.zeebe.msgpack.spec.MsgPackWriter writer
protected final io.zeebe.msgpack.spec.MsgPackReader reader
protected final org.agrona.ExpandableArrayBuffer ioBuffer
public UnpackedObjectSnapshotSupport(UnpackedObject object)
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 SnapshotSupportpublic long snapshotSize()
snapshotSize in interface ComposableSnapshotSupportCopyright © 2017–2018 camunda services GmbH. All rights reserved.