public class SnapshotReadService
extends java.lang.Object
| Constructor and Description |
|---|
SnapshotReadService(SnapshotProperties properties,
software.amazon.awssdk.services.s3.S3Client s3Client) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.io.File> |
retrieveLatestSnapshot(java.lang.String channelName) |
void |
setSnapshotFile(java.io.File file)
Force to read a local snapshot file instead of retrieving it from S3 bucket.
|
public SnapshotReadService(SnapshotProperties properties, software.amazon.awssdk.services.s3.S3Client s3Client)
public void setSnapshotFile(java.io.File file)
file - local snapshot file to readpublic java.util.Optional<java.io.File> retrieveLatestSnapshot(java.lang.String channelName)