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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description scala.collection.immutable.Seq<java.lang.Object>
persistedInStorage(java.lang.String persistenceId)
Retrieve all snapshots saved in storage by persistence id.void
persistForRecovery(java.lang.String persistenceId, scala.collection.immutable.Seq<java.lang.Object> events)
Persistsnapshots
into storage in order.void
rejectNextDelete()
Reject next delete from storage operation for any persistence id with default exception.void
rejectNextDelete(java.lang.String persistenceId)
Reject next delete from storage operations for particular persistence id with default exception.void
rejectNextDelete(java.lang.String persistenceId, java.lang.Throwable cause)
Reject next delete from storage operations for particular persistence id withcause
exception.void
rejectNextDelete(java.lang.Throwable cause)
Reject next delete from storage operation for any persistence id withcause
exception.void
rejectNextNDeletes(int n)
Reject next n delete from storage operations for any persistence id with default exception.void
rejectNextNDeletes(int n, java.lang.Throwable cause)
Reject next n delete from storage operations for any persistence id withcause
exception.void
rejectNextNDeletes(java.lang.String persistenceId, int n)
Reject next n delete from storage operations for particular persistence id with default exception.void
rejectNextNDeletes(java.lang.String persistenceId, int n, java.lang.Throwable cause)
Reject next n delete from storage operations for particular persistence id withcause
exception.void
rejectNextNPersisted(int n)
Reject next n save in storage operations for any persistence id with default exception.void
rejectNextNPersisted(int n, java.lang.Throwable cause)
Reject next n save in storage operations for any persistence id withcause
exception.void
rejectNextNPersisted(java.lang.String persistenceId, int n)
Reject next n save in storage operations for particular persistence id with default exception.void
rejectNextNPersisted(java.lang.String persistenceId, int n, java.lang.Throwable cause)
Reject next n save in storage operations for particular persistence id withcause
exception.void
rejectNextNReads(int n)
Reject next n read from storage operations for any persistence id with default exception.void
rejectNextNReads(int n, java.lang.Throwable cause)
Reject next n read from storage operations for any persistence id withcause
exception.void
rejectNextNReads(java.lang.String persistenceId, int n)
Reject next n read from storage operations for particular persistence id with default exception.void
rejectNextNReads(java.lang.String persistenceId, int n, java.lang.Throwable cause)
Reject next n read from storage operations for particular persistence id withcause
exception.void
rejectNextPersisted()
Reject next save in storage operation for any persistence id with default exception.void
rejectNextPersisted(java.lang.String persistenceId)
Reject next save in storage operation for particular persistence id with default exception.void
rejectNextPersisted(java.lang.String persistenceId, java.lang.Throwable cause)
Reject next save in storage operation for particular persistence id withcause
exception.void
rejectNextPersisted(java.lang.Throwable cause)
Reject next save in storage operation for any persistence id withcause
exception.void
rejectNextRead()
Reject next read from storage operation for any persistence id with default exception.void
rejectNextRead(java.lang.String persistenceId)
Reject next read from storage operation for particular persistence id with default exception.void
rejectNextRead(java.lang.String persistenceId, java.lang.Throwable cause)
Reject next read from storage operation for particular persistence id withcause
exception.void
rejectNextRead(java.lang.Throwable cause)
Reject next read from storage operation for any persistence id withcause
exception.-
Methods inherited from interface akka.persistence.testkit.scaladsl.ClearOps
clearAll, clearByPersistenceId
-
Methods inherited from interface akka.persistence.testkit.scaladsl.ClearPreservingSeqNums
clearAllPreservingSeqNumbers, clearByIdPreservingSeqNumbers
-
Methods inherited from interface akka.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, failNextRead
-
Methods inherited from interface akka.persistence.testkit.scaladsl.PolicyOpsTestKit
failNextNOps, failNextNOps, failNextNOpsCond, failNextNOpsCond, Policies, resetPolicy, withPolicy
-
Methods inherited from interface akka.persistence.testkit.scaladsl.RejectSupport
rejectNextNOps, rejectNextNOps, rejectNextNOpsCond, rejectNextNOpsCond
-
-
-
-
Method Detail
-
persistForRecovery
void persistForRecovery(java.lang.String persistenceId, scala.collection.immutable.Seq<java.lang.Object> events)
Persistsnapshots
into storage in order.
-
persistedInStorage
scala.collection.immutable.Seq<java.lang.Object> persistedInStorage(java.lang.String persistenceId)
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
void rejectNextDelete(java.lang.Throwable cause)
Reject next delete from storage operation for any persistence id withcause
exception.
-
rejectNextDelete
void rejectNextDelete(java.lang.String persistenceId)
Reject next delete from storage operations for particular persistence id with default exception.
-
rejectNextDelete
void rejectNextDelete(java.lang.String persistenceId, java.lang.Throwable cause)
Reject next delete from storage operations for particular persistence id withcause
exception.
-
rejectNextNDeletes
void rejectNextNDeletes(int n)
Reject next n delete from storage operations for any persistence id with default exception.
-
rejectNextNDeletes
void rejectNextNDeletes(int n, java.lang.Throwable cause)
Reject next n delete from storage operations for any persistence id withcause
exception.
-
rejectNextNDeletes
void rejectNextNDeletes(java.lang.String persistenceId, int n)
Reject next n delete from storage operations for particular persistence id with default exception.
-
rejectNextNDeletes
void rejectNextNDeletes(java.lang.String persistenceId, int n, java.lang.Throwable cause)
Reject next n delete from storage operations for particular persistence id withcause
exception.
-
rejectNextNPersisted
void rejectNextNPersisted(java.lang.String persistenceId, int n, java.lang.Throwable cause)
Reject next n save in storage operations for particular persistence id withcause
exception.
-
rejectNextNPersisted
void rejectNextNPersisted(java.lang.String persistenceId, int n)
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
void rejectNextNPersisted(int n, java.lang.Throwable cause)
Reject next n save in storage operations for any persistence id withcause
exception.
-
rejectNextNReads
void rejectNextNReads(int n)
Reject next n read from storage operations for any persistence id with default exception.
-
rejectNextNReads
void rejectNextNReads(int n, java.lang.Throwable cause)
Reject next n read from storage operations for any persistence id withcause
exception.
-
rejectNextNReads
void rejectNextNReads(java.lang.String persistenceId, int n)
Reject next n read from storage operations for particular persistence id with default exception.
-
rejectNextNReads
void rejectNextNReads(java.lang.String persistenceId, int n, java.lang.Throwable cause)
Reject next n read from storage operations for particular persistence id withcause
exception.
-
rejectNextPersisted
void rejectNextPersisted(java.lang.String persistenceId)
Reject next save in storage operation for particular persistence id with default exception.
-
rejectNextPersisted
void rejectNextPersisted(java.lang.String persistenceId, java.lang.Throwable cause)
Reject next save in storage operation for particular persistence id withcause
exception.
-
rejectNextPersisted
void rejectNextPersisted(java.lang.Throwable cause)
Reject next save in storage operation for any persistence id withcause
exception.
-
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
void rejectNextRead(java.lang.Throwable cause)
Reject next read from storage operation for any persistence id withcause
exception.
-
rejectNextRead
void rejectNextRead(java.lang.String persistenceId)
Reject next read from storage operation for particular persistence id with default exception.
-
rejectNextRead
void rejectNextRead(java.lang.String persistenceId, java.lang.Throwable cause)
Reject next read from storage operation for particular persistence id withcause
exception.
-
-