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.

param: maxSequenceNr upper bound for a selected snapshot's sequence number. Default is no upper bound. param: maxTimestamp upper bound for a selected snapshot's timestamp. Default is no upper bound.

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.
 SnapshotSelectionCriteria limit(long toSequenceNr)
          INTERNAL API.
 boolean matches(SnapshotMetadata metadata)
          INTERNAL API.
 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.

Returns:
(undocumented)

None

public static SnapshotSelectionCriteria None()
No saved snapshot matches.

Returns:
(undocumented)

create

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

Parameters:
maxSequenceNr - (undocumented)
maxTimestamp - (undocumented)
Returns:
(undocumented)

latest

public static SnapshotSelectionCriteria latest()
Java API.

Returns:
(undocumented)

none

public static SnapshotSelectionCriteria none()
Java API.

Returns:
(undocumented)

maxSequenceNr

public long maxSequenceNr()

maxTimestamp

public long maxTimestamp()

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)