Class SnapshotReadService


  • public class SnapshotReadService
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SnapshotReadService

        public SnapshotReadService​(SnapshotProperties properties,
                                   software.amazon.awssdk.services.s3.S3Client s3Client)
      • SnapshotReadService

        public SnapshotReadService​(SnapshotProperties properties,
                                   software.amazon.awssdk.services.s3.S3Client s3Client,
                                   org.slf4j.Marker marker)
    • Method Detail

      • setSnapshotFile

        public void setSnapshotFile​(java.io.File file)
        Force to read a local snapshot file instead of retrieving it from S3 bucket.
        Parameters:
        file - local snapshot file to read
      • retrieveLatestSnapshot

        public java.util.Optional<java.io.File> retrieveLatestSnapshot​(java.lang.String channelName)