Class SnapshotSelectionCriteria

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product, scala.Serializable

    public final class SnapshotSelectionCriteria
    extends java.lang.Object
    implements scala.Product, scala.Serializable
    Selection criteria for loading and deleting snapshots.

    param: maxSequenceNr upper bound for a selected snapshot's sequence number. Default is no upper bound, i.e. Long.MaxValue param: maxTimestamp upper bound for a selected snapshot's timestamp. Default is no upper bound, i.e. Long.MaxValue param: minSequenceNr lower bound for a selected snapshot's sequence number. Default is no lower bound, i.e. 0L param: minTimestamp lower bound for a selected snapshot's timestamp. Default is no lower bound, i.e. 0L

    See Also:
    Recovery, Serialized Form
    • Constructor Detail

      • SnapshotSelectionCriteria

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

      • $lessinit$greater$default$1

        public static long $lessinit$greater$default$1()
      • $lessinit$greater$default$2

        public static long $lessinit$greater$default$2()
      • $lessinit$greater$default$3

        public static long $lessinit$greater$default$3()
      • $lessinit$greater$default$4

        public static long $lessinit$greater$default$4()
      • create

        public static SnapshotSelectionCriteria create​(long maxSequenceNr,
                                                       long maxTimestamp)
        Java API.
        Parameters:
        maxSequenceNr - (undocumented)
        maxTimestamp - (undocumented)
        Returns:
        (undocumented)
      • create

        public static SnapshotSelectionCriteria create​(long maxSequenceNr,
                                                       long maxTimestamp,
                                                       long minSequenceNr,
                                                       long minTimestamp)
        Java API.
        Parameters:
        maxSequenceNr - (undocumented)
        maxTimestamp - (undocumented)
        minSequenceNr - (undocumented)
        minTimestamp - (undocumented)
        Returns:
        (undocumented)
      • apply

        public static SnapshotSelectionCriteria apply​(long maxSequenceNr,
                                                      long maxTimestamp,
                                                      long minSequenceNr,
                                                      long minTimestamp)
      • apply$default$1

        public static long apply$default$1()
      • apply$default$2

        public static long apply$default$2()
      • apply$default$3

        public static long apply$default$3()
      • apply$default$4

        public static long apply$default$4()
      • unapply

        public static scala.Option<scala.Tuple4<java.lang.Object,​java.lang.Object,​java.lang.Object,​java.lang.Object>> unapply​(SnapshotSelectionCriteria x$0)
      • maxSequenceNr

        public long maxSequenceNr()
      • maxTimestamp

        public long maxTimestamp()
      • minSequenceNr

        public long minSequenceNr()
      • minTimestamp

        public long minTimestamp()
      • limit

        public SnapshotSelectionCriteria limit​(long toSequenceNr)
        INTERNAL API.
        Parameters:
        toSequenceNr - (undocumented)
        Returns:
        (undocumented)
      • matches

        public boolean matches​(SnapshotMetadata metadata)
        INTERNAL API.
        Parameters:
        metadata - (undocumented)
        Returns:
        (undocumented)
      • copy

        public SnapshotSelectionCriteria copy​(long maxSequenceNr,
                                              long maxTimestamp,
                                              long minSequenceNr,
                                              long minTimestamp)
      • copy$default$1

        public long copy$default$1()
      • copy$default$2

        public long copy$default$2()
      • copy$default$3

        public long copy$default$3()
      • copy$default$4

        public long copy$default$4()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

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

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

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object