public class SnapshotReadService
extends java.lang.Object
| Constructor and Description |
|---|
SnapshotReadService(SnapshotProperties properties,
de.otto.edison.aws.s3.S3Service s3Service) |
SnapshotReadService(SnapshotProperties properties,
de.otto.edison.aws.s3.S3Service s3Service,
TempFileHelper tempFileHelper) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteOlderSnapshots(java.lang.String streamName) |
java.util.Optional<java.io.File> |
retrieveLatestSnapshot(java.lang.String streamName) |
void |
setSnapshotFile(java.io.File file)
Force to read a local snapshot file instead of retrieving it from S3 bucket.
|
public SnapshotReadService(SnapshotProperties properties, de.otto.edison.aws.s3.S3Service s3Service)
public SnapshotReadService(SnapshotProperties properties, de.otto.edison.aws.s3.S3Service s3Service, TempFileHelper tempFileHelper)
public void setSnapshotFile(java.io.File file)
file - local snapshot file to readpublic java.util.Optional<java.io.File> retrieveLatestSnapshot(java.lang.String streamName)
public void deleteOlderSnapshots(java.lang.String streamName)