akka.persistence
Class SnapshotSelectionCriteria

java.lang.Object
  extended by akka.persistence.SnapshotSelectionCriteria
All Implemented Interfaces:
java.io.Serializable, scala.Equals, scala.Product

public class SnapshotSelectionCriteria
extends java.lang.Object
implements scala.Product, scala.Serializable

Selection criteria for loading and deleting snapshots.

See Also:
Recover, Serialized Form

Constructor Summary
SnapshotSelectionCriteria(long maxSequenceNr, long maxTimestamp)
           
 
Method Summary
static SnapshotSelectionCriteria create(long maxSequenceNr, long maxTimestamp)
          Java API.
static SnapshotSelectionCriteria latest()
          Java API.
static SnapshotSelectionCriteria Latest()
          The latest saved snapshot.
 long maxSequenceNr()
           
 long maxTimestamp()
           
static SnapshotSelectionCriteria none()
          Java API.
static SnapshotSelectionCriteria None()
          No saved snapshot matches.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 

Constructor Detail

SnapshotSelectionCriteria

public SnapshotSelectionCriteria(long maxSequenceNr,
                                 long maxTimestamp)
Method Detail

Latest

public static SnapshotSelectionCriteria Latest()
The latest saved snapshot.


None

public static SnapshotSelectionCriteria None()
No saved snapshot matches.


create

public static SnapshotSelectionCriteria create(long maxSequenceNr,
                                               long maxTimestamp)
Java API.


latest

public static SnapshotSelectionCriteria latest()
Java API.


none

public static SnapshotSelectionCriteria none()
Java API.


maxSequenceNr

public long maxSequenceNr()

maxTimestamp

public long maxTimestamp()