public final class Recover
extends java.lang.Object
implements scala.Product, scala.Serializable
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 and Description |
|---|
Recover(SnapshotSelectionCriteria fromSnapshot,
long toSequenceNr,
long replayMax) |
| Modifier and Type | Method and Description |
|---|---|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic Recover(SnapshotSelectionCriteria fromSnapshot, long toSequenceNr, long replayMax)
public static Recover create(long toSequenceNr)
toSequenceNr - (undocumented)Recoverpublic static Recover create(SnapshotSelectionCriteria fromSnapshot)
fromSnapshot - (undocumented)Recoverpublic static Recover create(SnapshotSelectionCriteria fromSnapshot, long toSequenceNr)
fromSnapshot - (undocumented)toSequenceNr - (undocumented)Recoverpublic static Recover create(SnapshotSelectionCriteria fromSnapshot, long toSequenceNr, long replayMax)
fromSnapshot - (undocumented)toSequenceNr - (undocumented)replayMax - (undocumented)Recoverpublic SnapshotSelectionCriteria fromSnapshot()
public long toSequenceNr()
public long replayMax()