|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectakka.persistence.Recover
public class Recover
Instructs a persistent actor to recover itself. Recovery will start from a snapshot if the persistent actor 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 persistent actor 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
).
param: fromSnapshot criteria for selecting a saved snapshot from which recovery should start. Default is latest (= youngest) snapshot. param: toSequenceNr upper sequence number bound (inclusive) for recovery. Default is no upper bound. param: replayMax maximum number of messages to replay. Default is no limit.
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 |
---|
public Recover(SnapshotSelectionCriteria fromSnapshot, long toSequenceNr, long replayMax)
Method Detail |
---|
public static Recover create()
Recover
public static Recover create(long toSequenceNr)
toSequenceNr
- (undocumented)
Recover
public static Recover create(SnapshotSelectionCriteria fromSnapshot)
fromSnapshot
- (undocumented)
Recover
public static Recover create(SnapshotSelectionCriteria fromSnapshot, long toSequenceNr)
fromSnapshot
- (undocumented)toSequenceNr
- (undocumented)
Recover
public static Recover create(SnapshotSelectionCriteria fromSnapshot, long toSequenceNr, long replayMax)
fromSnapshot
- (undocumented)toSequenceNr
- (undocumented)replayMax
- (undocumented)
Recover
public SnapshotSelectionCriteria fromSnapshot()
public long toSequenceNr()
public long replayMax()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |