Class SnapshotSelectionCriteria


  • public final class SnapshotSelectionCriteria
    extends java.lang.Object
    Selection criteria for loading and deleting snapshots.
    • Constructor Detail

      • SnapshotSelectionCriteria

        public SnapshotSelectionCriteria​(long maxSequenceNr,
                                         long maxTimestamp,
                                         long minSequenceNr,
                                         long minTimestamp)
    • Method Detail

      • maxSequenceNr

        public long maxSequenceNr()
      • maxTimestamp

        public long maxTimestamp()
      • minSequenceNr

        public long minSequenceNr()
      • minTimestamp

        public long minTimestamp()
      • withMaxSequenceNr

        public SnapshotSelectionCriteria withMaxSequenceNr​(long newMaxSequenceNr)
        upper bound for a selected snapshot's sequence number
        Parameters:
        newMaxSequenceNr - (undocumented)
        Returns:
        (undocumented)
      • withMaxTimestamp

        public SnapshotSelectionCriteria withMaxTimestamp​(long newMaxTimestamp)
        upper bound for a selected snapshot's timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z.
        Parameters:
        newMaxTimestamp - (undocumented)
        Returns:
        (undocumented)
      • withMinSequenceNr

        public SnapshotSelectionCriteria withMinSequenceNr​(long newMinSequenceNr)
        lower bound for a selected snapshot's sequence number
        Parameters:
        newMinSequenceNr - (undocumented)
        Returns:
        (undocumented)
      • withMinTimestamp

        public SnapshotSelectionCriteria withMinTimestamp​(long newMinTimestamp)
        lower bound for a selected snapshot's timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z.
        Parameters:
        newMinTimestamp - (undocumented)
        Returns:
        (undocumented)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object