Interface PersistenceTestKitOps<S,P>
- All Superinterfaces:
ClearOps,ClearPreservingSeqNums,CommonTestKitOps<S,,P> PolicyOpsTestKit<P>,RejectSupport<P>
- All Known Implementing Classes:
PersistenceTestKit
public interface PersistenceTestKitOps<S,P>
extends RejectSupport<P>, ClearPreservingSeqNums, CommonTestKitOps<S,P>
-
Method Summary
Modifier and TypeMethodDescriptionscala.collection.immutable.Seq<Object>persistedInStorage(String persistenceId) Retrieve all snapshots saved in storage by persistence id.voidpersistForRecovery(String persistenceId, scala.collection.immutable.Seq<Object> events) Persistsnapshotsinto storage in order.voidReject next delete from storage operation for any persistence id with default exception.voidrejectNextDelete(String persistenceId) Reject next delete from storage operations for particular persistence id with default exception.voidrejectNextDelete(String persistenceId, Throwable cause) Reject next delete from storage operations for particular persistence id withcauseexception.voidrejectNextDelete(Throwable cause) Reject next delete from storage operation for any persistence id withcauseexception.voidrejectNextNDeletes(int n) Reject next n delete from storage operations for any persistence id with default exception.voidrejectNextNDeletes(int n, Throwable cause) Reject next n delete from storage operations for any persistence id withcauseexception.voidrejectNextNDeletes(String persistenceId, int n) Reject next n delete from storage operations for particular persistence id with default exception.voidrejectNextNDeletes(String persistenceId, int n, Throwable cause) Reject next n delete from storage operations for particular persistence id withcauseexception.voidrejectNextNPersisted(int n) Reject next n save in storage operations for any persistence id with default exception.voidrejectNextNPersisted(int n, Throwable cause) Reject next n save in storage operations for any persistence id withcauseexception.voidrejectNextNPersisted(String persistenceId, int n) Reject next n save in storage operations for particular persistence id with default exception.voidrejectNextNPersisted(String persistenceId, int n, Throwable cause) Reject next n save in storage operations for particular persistence id withcauseexception.voidrejectNextNReads(int n) Reject next n read from storage operations for any persistence id with default exception.voidrejectNextNReads(int n, Throwable cause) Reject next n read from storage operations for any persistence id withcauseexception.voidrejectNextNReads(String persistenceId, int n) Reject next n read from storage operations for particular persistence id with default exception.voidrejectNextNReads(String persistenceId, int n, Throwable cause) Reject next n read from storage operations for particular persistence id withcauseexception.voidReject next save in storage operation for any persistence id with default exception.voidrejectNextPersisted(String persistenceId) Reject next save in storage operation for particular persistence id with default exception.voidrejectNextPersisted(String persistenceId, Throwable cause) Reject next save in storage operation for particular persistence id withcauseexception.voidrejectNextPersisted(Throwable cause) Reject next save in storage operation for any persistence id withcauseexception.voidReject next read from storage operation for any persistence id with default exception.voidrejectNextRead(String persistenceId) Reject next read from storage operation for particular persistence id with default exception.voidrejectNextRead(String persistenceId, Throwable cause) Reject next read from storage operation for particular persistence id withcauseexception.voidrejectNextRead(Throwable cause) Reject next read from storage operation for any persistence id withcauseexception.Methods inherited from interface org.apache.pekko.persistence.testkit.scaladsl.ClearOps
clearAll, clearByPersistenceIdMethods inherited from interface org.apache.pekko.persistence.testkit.scaladsl.ClearPreservingSeqNums
clearAllPreservingSeqNumbers, clearByIdPreservingSeqNumbersMethods inherited from interface org.apache.pekko.persistence.testkit.scaladsl.CommonTestKitOps
expectNextPersisted, expectNextPersisted, expectNothingPersisted, expectNothingPersisted, failNextDelete, failNextDelete, failNextDelete, failNextDelete, failNextNDeletes, failNextNDeletes, failNextNDeletes, failNextNDeletes, failNextNPersisted, failNextNPersisted, failNextNPersisted, failNextNPersisted, failNextNReads, failNextNReads, failNextNReads, failNextNReads, failNextPersisted, failNextPersisted, failNextPersisted, failNextPersisted, failNextRead, failNextRead, failNextRead, failNextReadMethods inherited from interface org.apache.pekko.persistence.testkit.scaladsl.PolicyOpsTestKit
failNextNOps, failNextNOps, failNextNOpsCond, failNextNOpsCond, Policies, resetPolicy, withPolicyMethods inherited from interface org.apache.pekko.persistence.testkit.scaladsl.RejectSupport
rejectNextNOps, rejectNextNOps, rejectNextNOpsCond, rejectNextNOpsCond
-
Method Details
-
persistForRecovery
Persistsnapshotsinto storage in order. -
persistedInStorage
Retrieve all snapshots saved in storage by persistence id. -
rejectNextDelete
void rejectNextDelete()Reject next delete from storage operation for any persistence id with default exception. -
rejectNextDelete
Reject next delete from storage operation for any persistence id withcauseexception. -
rejectNextDelete
Reject next delete from storage operations for particular persistence id with default exception. -
rejectNextDelete
Reject next delete from storage operations for particular persistence id withcauseexception. -
rejectNextNDeletes
void rejectNextNDeletes(int n) Reject next n delete from storage operations for any persistence id with default exception. -
rejectNextNDeletes
Reject next n delete from storage operations for any persistence id withcauseexception. -
rejectNextNDeletes
Reject next n delete from storage operations for particular persistence id with default exception. -
rejectNextNDeletes
Reject next n delete from storage operations for particular persistence id withcauseexception. -
rejectNextNPersisted
Reject next n save in storage operations for particular persistence id withcauseexception. -
rejectNextNPersisted
Reject next n save in storage operations for particular persistence id with default exception. -
rejectNextNPersisted
void rejectNextNPersisted(int n) Reject next n save in storage operations for any persistence id with default exception. -
rejectNextNPersisted
Reject next n save in storage operations for any persistence id withcauseexception. -
rejectNextNReads
void rejectNextNReads(int n) Reject next n read from storage operations for any persistence id with default exception. -
rejectNextNReads
Reject next n read from storage operations for any persistence id withcauseexception. -
rejectNextNReads
Reject next n read from storage operations for particular persistence id with default exception. -
rejectNextNReads
Reject next n read from storage operations for particular persistence id withcauseexception. -
rejectNextPersisted
Reject next save in storage operation for particular persistence id with default exception. -
rejectNextPersisted
Reject next save in storage operation for particular persistence id withcauseexception. -
rejectNextPersisted
Reject next save in storage operation for any persistence id withcauseexception. -
rejectNextPersisted
void rejectNextPersisted()Reject next save in storage operation for any persistence id with default exception. -
rejectNextRead
void rejectNextRead()Reject next read from storage operation for any persistence id with default exception. -
rejectNextRead
Reject next read from storage operation for any persistence id withcauseexception. -
rejectNextRead
Reject next read from storage operation for particular persistence id with default exception. -
rejectNextRead
Reject next read from storage operation for particular persistence id withcauseexception.
-