package testkit
- Alphabetic
- Public
- All
Type Members
-
final
case class
DeleteEvents(toSeqNumber: Long) extends JournalOperation with Product with Serializable
Delete events in the journal up to
toSeqNumber
operation. -
sealed abstract
class
DeleteSnapshot extends SnapshotOperation
INTERNAL API
INTERNAL API
- Annotations
- @InternalApi()
-
final
case class
DeleteSnapshotByMeta(metadata: SnapshotMeta) extends DeleteSnapshot with Product with Serializable
Delete particular snapshot from storage by its metadata.
-
final
case class
DeleteSnapshotsByCriteria(criteria: SnapshotSelectionCriteria) extends DeleteSnapshot with Product with Serializable
Delete snapshots from storage by criteria.
- sealed abstract class ExpectedFailure extends Throwable with NoStackTrace
- sealed abstract class ExpectedRejection extends Throwable
-
sealed
trait
JournalOperation extends AnyRef
INTERNAL API
INTERNAL API
Persistent journal operations.
- Annotations
- @InternalApi()
-
class
PersistenceTestKitPlugin extends AsyncWriteJournal with ActorLogging
INTERNAL API
INTERNAL API
Persistence testkit plugin for events.
- Annotations
- @InternalApi()
-
class
PersistenceTestKitSnapshotPlugin extends SnapshotStore
INTERNAL API
INTERNAL API
Persistence testkit plugin for snapshots.
- Annotations
- @InternalApi()
- sealed trait ProcessingFailure extends ProcessingResult
-
trait
ProcessingPolicy[U] extends AnyRef
Policies allow to emulate behavior of the storage (failures and rejections).
Policies allow to emulate behavior of the storage (failures and rejections).
- U
type determines operations which storage can perform.
- Annotations
- @ApiMayChange()
-
sealed
trait
ProcessingResult extends AnyRef
INTERNAL API
INTERNAL API
- Annotations
- @InternalApi()
- sealed abstract class ProcessingSuccess extends ProcessingResult
-
final
case class
ReadEvents(batch: Seq[Any]) extends JournalOperation with Product with Serializable
Read from journal operation with events that were read.
-
final
case class
ReadSnapshot(criteria: SnapshotSelectionCriteria, snapshot: Option[Any]) extends SnapshotOperation with Product with Serializable
Storage read operation for recovery of the persistent actor.
Storage read operation for recovery of the persistent actor.
- criteria
criteria with which snapshot is searched
- snapshot
snapshot found by criteria
-
final
case class
Reject(error: Throwable = ExpectedRejection) extends ProcessingFailure with Product with Serializable
Emulates rejection of operation by the journal with
error
exception.Emulates rejection of operation by the journal with
error
exception. Has the same meaning asStorageFailure
for snapshot storage, because it does not support rejections. -
final
case class
SnapshotMeta(sequenceNr: Long, timestamp: Long = 0L) extends Product with Serializable
Snapshot metainformation.
-
sealed
trait
SnapshotOperation extends AnyRef
INTERNAL API Operations supported by snapshot plugin
INTERNAL API Operations supported by snapshot plugin
- Annotations
- @InternalApi()
-
final
case class
StorageFailure(error: Throwable = ExpectedFailure) extends ProcessingFailure with Product with Serializable
Emulates exception thrown by the storage on the attempt to perform some operation.
-
final
case class
WriteEvents(batch: Seq[Any]) extends JournalOperation with Product with Serializable
Write in journal operation with events to be written.
-
final
case class
WriteSnapshot(metadata: SnapshotMeta, snapshot: Any) extends SnapshotOperation with Product with Serializable
Storage write operation to persist snapshot in the storage.
Storage write operation to persist snapshot in the storage.
- metadata
snapshot metadata
- snapshot
snapshot payload
Value Members
- object EventStorage
- object ExpectedFailure extends ExpectedFailure
- object ExpectedRejection extends ExpectedRejection
- object PersistenceTestKitPlugin
- object PersistenceTestKitSnapshotPlugin
-
object
ProcessingPolicy
INTERNAL API
INTERNAL API
- Annotations
- @InternalApi()
-
object
ProcessingSuccess extends ProcessingSuccess with Product with Serializable
Emulates successful processing of some operation.
-
object
ReadSeqNum extends JournalOperation with Product with Serializable
Read persistent actor's sequence number operation.
- object Reject extends Serializable
- object SnapshotMeta extends Product with Serializable
- object SnapshotStorage
- object StorageFailure extends Serializable