Class SnapshotStoreSaveSnapshotSpec
This spec aims to verify custom SnapshotStore SaveSnapshot
implementations.
This is an optional spec that checks if SaveSnapshot
supports:
- Saving snapshots with the same sequence number (upsert operation)
- Saving snapshots concurrently and be able to save them in correct order
Inheritance
SnapshotStoreSaveSnapshotSpec
Assembly: Akka.Persistence.TCK.dll
Syntax
public class SnapshotStoreSaveSnapshotSpec : PluginSpec, IActorRefFactory, IDisposable
Constructors
|
Edit this page
View Source
SnapshotStoreSaveSnapshotSpec(Config, string, ITestOutputHelper)
Declaration
protected SnapshotStoreSaveSnapshotSpec(Config config = null, string actorSystemName = null, ITestOutputHelper output = null)
Parameters
Type |
Name |
Description |
Config |
config |
|
string |
actorSystemName |
|
ITestOutputHelper |
output |
|
Fields
|
Edit this page
View Source
SenderProbe
Declaration
protected readonly TestProbe SenderProbe
Field Value
Properties
|
Edit this page
View Source
PersistenceId
Declaration
protected string PersistenceId { get; }
Property Value
|
Edit this page
View Source
SupportsConcurrentSaves
Declaration
protected virtual bool SupportsConcurrentSaves { get; }
Property Value
|
Edit this page
View Source
SupportsSerialization
When enabled, allows serialization specs to run.
Declaration
protected override bool SupportsSerialization { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
MultipleSnapshotsWithNoPersistTest()
Declaration
[Fact(DisplayName = "Rapid multiple SaveSnapshot invocation with no journal persist should only save the latest snapshot")]
public virtual Task MultipleSnapshotsWithNoPersistTest()
Returns
|
Edit this page
View Source
MultipleSnapshotsWithPersistTest()
Declaration
[Fact(DisplayName = "Rapid multiple SaveSnapshot invocation with journal persist should only save the latest snapshot")]
public virtual Task MultipleSnapshotsWithPersistTest()
Returns
|
Edit this page
View Source
MultipleSnapshotsWithSameSeqNo()
Declaration
[Fact(DisplayName = "Multiple SaveSnapshot invocation with the same sequence number should not throw")]
public virtual Task MultipleSnapshotsWithSameSeqNo()
Returns
Implements
Extension Methods