public class ZbMapSnapshotSupport<T extends ZbMap<?,?>> extends Object implements ComposableSnapshotSupport
| Constructor and Description |
|---|
ZbMapSnapshotSupport(T zbMap) |
| Modifier and Type | Method and Description |
|---|---|
T |
getZbMap() |
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
|
public ZbMapSnapshotSupport(T zbMap)
public T getZbMap()
public long snapshotSize()
snapshotSize in interface ComposableSnapshotSupportpublic 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.