Class SnapshotReadService

java.lang.Object
de.otto.synapse.compaction.s3.SnapshotReadService

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

    Constructors 
    Constructor Description
    SnapshotReadService​(SnapshotProperties properties, software.amazon.awssdk.services.s3.S3Client s3Client)  
    SnapshotReadService​(SnapshotProperties properties, software.amazon.awssdk.services.s3.S3Client s3Client, org.slf4j.Marker marker)  
  • Method Summary

    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 Details

  • Method Details

    • 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)