public class ComposedSnapshot extends Object implements SnapshotSupport
| Modifier and Type | Field and Description |
|---|---|
protected byte |
count |
protected ComposableSnapshotSupport[] |
parts |
protected long |
processedBytes |
| Constructor and Description |
|---|
ComposedSnapshot(ComposableSnapshotSupport... parts) |
| Modifier and Type | Method and Description |
|---|---|
long |
getProcessedBytes() |
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 final ComposableSnapshotSupport[] parts
protected final byte count
protected long processedBytes
public ComposedSnapshot(ComposableSnapshotSupport... parts)
public long getProcessedBytes()
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.