public interface ReadableSnapshot extends SnapshotMetadata
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes the snapshot and related data.
|
InputStream |
getData()
Input stream to read the snapshot data.
|
default void |
recoverFromSnapshot(SnapshotSupport snapshotSupport)
Reads the snapshot data and recover the given snapshot object.
|
void |
validateAndClose()
Consumers of this API must call this method after having read the input stream.
|
getChecksum, getName, getPosition, getSize, isReplicableInputStream getData()
void validateAndClose()
throws InvalidSnapshotException
InvalidSnapshotException - if not validvoid delete()
default void recoverFromSnapshot(SnapshotSupport snapshotSupport) throws Exception
snapshotSupport - the snapshot objectException - if fails to recover the snapshot objectInvalidSnapshotException - if the snapshot is not validCopyright © 2017–2018 camunda services GmbH. All rights reserved.