akka.persistence
Class Recover

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

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

Instructs a processor to recover itself. Recovery will start from a snapshot if the processor has previously saved one or more snapshots and at least one of these snapshots matches the specified fromSnapshot criteria. Otherwise, recovery will start from scratch by replaying all journaled messages.

If recovery starts from a snapshot, the processor is offered that snapshot with a SnapshotOffer message, followed by replayed messages, if any, that are younger than the snapshot, up to the specified upper sequence number bound (toSequenceNr).

See Also:
Serialized Form

Constructor Summary
Recover(SnapshotSelectionCriteria fromSnapshot, long toSequenceNr, long replayMax)
           
 
Method Summary
static Recover create()
          Java API.
static Recover create(long toSequenceNr)
          Java API.
static Recover create(SnapshotSelectionCriteria fromSnapshot)
          Java API.
static Recover create(SnapshotSelectionCriteria fromSnapshot, long toSequenceNr)
          Java API.
static Recover create(SnapshotSelectionCriteria fromSnapshot, long toSequenceNr, long replayMax)
          Java API.
 SnapshotSelectionCriteria fromSnapshot()
           
 long replayMax()
           
 long toSequenceNr()
           
 
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

Recover

public Recover(SnapshotSelectionCriteria fromSnapshot,
               long toSequenceNr,
               long replayMax)
Method Detail

create

public static Recover create()
Java API.

See Also:
Recover

create

public static Recover create(long toSequenceNr)
Java API.

See Also:
Recover

create

public static Recover create(SnapshotSelectionCriteria fromSnapshot)
Java API.

See Also:
Recover

create

public static Recover create(SnapshotSelectionCriteria fromSnapshot,
                             long toSequenceNr)
Java API.

See Also:
Recover

create

public static Recover create(SnapshotSelectionCriteria fromSnapshot,
                             long toSequenceNr,
                             long replayMax)
Java API.

See Also:
Recover

fromSnapshot

public SnapshotSelectionCriteria fromSnapshot()

toSequenceNr

public long toSequenceNr()

replayMax

public long replayMax()