Class SnapshotStoreSpec
This spec aims to verify custom SnapshotStore implementations.
Every custom authors snapshot store spec should have it's spec suite included.
Inheritance
SnapshotStoreSpec
Assembly: Akka.Persistence.TCK.dll
Syntax
public abstract class SnapshotStoreSpec : PluginSpec, IActorRefFactory, IDisposable
Constructors
|
Improve this Doc
View Source
SnapshotStoreSpec(ActorSystem, ITestOutputHelper)
Declaration
protected SnapshotStoreSpec(ActorSystem system = null, ITestOutputHelper output = null)
Parameters
Type |
Name |
Description |
ActorSystem |
system |
|
Xunit.Abstractions.ITestOutputHelper |
output |
|
|
Improve this Doc
View Source
SnapshotStoreSpec(ActorSystemSetup, String, ITestOutputHelper)
Declaration
protected SnapshotStoreSpec(ActorSystemSetup setup, string actorSystemName = null, ITestOutputHelper output = null)
Parameters
Type |
Name |
Description |
ActorSystemSetup |
setup |
|
String |
actorSystemName |
|
Xunit.Abstractions.ITestOutputHelper |
output |
|
|
Improve this Doc
View Source
SnapshotStoreSpec(Config, String, ITestOutputHelper)
Declaration
protected SnapshotStoreSpec(Config config = null, string actorSystemName = null, ITestOutputHelper output = null)
Parameters
Type |
Name |
Description |
Config |
config |
|
String |
actorSystemName |
|
Xunit.Abstractions.ITestOutputHelper |
output |
|
|
Improve this Doc
View Source
SnapshotStoreSpec(Type, String)
Declaration
protected SnapshotStoreSpec(Type snapshotStoreType, string actorSystemName = null)
Parameters
Type |
Name |
Description |
Type |
snapshotStoreType |
|
String |
actorSystemName |
|
Fields
|
Improve this Doc
View Source
Config
Declaration
protected static readonly Config Config
Field Value
|
Improve this Doc
View Source
Declaration
protected List<SnapshotMetadata> Metadata
Field Value
Properties
|
Improve this Doc
View Source
SnapshotByteSizeLimit
The limit defines a number of bytes persistence plugin can support to store the snapshot.
If plugin does not support persistence of the snapshots of 10000 bytes or may support more than default size,
the value can be overriden by the SnapshotStoreSpec implementation with a note in a plugin documentation.
Declaration
protected virtual int SnapshotByteSizeLimit { get; }
Property Value
|
Improve this Doc
View Source
SnapshotStore
Declaration
protected IActorRef SnapshotStore { get; }
Property Value
|
Improve this Doc
View Source
SupportsSerialization
Declaration
protected override bool SupportsSerialization { get; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
Initialize()
Initializes a snapshot store with set of predefined snapshots.
Declaration
protected IEnumerable<SnapshotMetadata> Initialize()
Returns
|
Improve this Doc
View Source
ShouldSerializeSnapshots()
Declaration
[Fact]
public virtual void ShouldSerializeSnapshots()
|
Improve this Doc
View Source
Declaration
[Fact]
public virtual void SnapshotStore_should_delete_a_single_snapshot_identified_by_SequenceNr_in_snapshot_metadata()
|
Improve this Doc
View Source
Declaration
[Fact]
public virtual void SnapshotStore_should_delete_a_single_snapshot_identified_by_SequenceNr_in_snapshot_metadata_if_timestamp_is_MinValue()
|
Improve this Doc
View Source
SnapshotStore_should_delete_all_snapshots_matching_upper_sequence_number_and_timestamp_bounds()
Declaration
[Fact]
public virtual void SnapshotStore_should_delete_all_snapshots_matching_upper_sequence_number_and_timestamp_bounds()
|
Improve this Doc
View Source
SnapshotStore_should_load_the_most_recent_snapshot()
Declaration
[Fact]
public virtual void SnapshotStore_should_load_the_most_recent_snapshot()
|
Improve this Doc
View Source
SnapshotStore_should_load_the_most_recent_snapshot_matching_an_upper_sequence_number_and_timestamp_bound()
Declaration
[Fact]
public virtual void SnapshotStore_should_load_the_most_recent_snapshot_matching_an_upper_sequence_number_and_timestamp_bound()
|
Improve this Doc
View Source
SnapshotStore_should_load_the_most_recent_snapshot_matching_an_upper_sequence_number_bound()
Declaration
[Fact]
public virtual void SnapshotStore_should_load_the_most_recent_snapshot_matching_an_upper_sequence_number_bound()
|
Improve this Doc
View Source
Declaration
[Fact]
public virtual void SnapshotStore_should_not_delete_snapshot_identified_by_SequenceNr_if_metadata_timestamp_is_less_than_stored_timestamp()
|
Improve this Doc
View Source
SnapshotStore_should_not_delete_snapshots_with_non_matching_upper_timestamp_bounds()
Declaration
[Fact]
public virtual void SnapshotStore_should_not_delete_snapshots_with_non_matching_upper_timestamp_bounds()
|
Improve this Doc
View Source
SnapshotStore_should_not_load_a_snapshot_given_an_invalid_persistence_id()
Declaration
[Fact]
public virtual void SnapshotStore_should_not_load_a_snapshot_given_an_invalid_persistence_id()
|
Improve this Doc
View Source
SnapshotStore_should_not_load_a_snapshot_given_non_matching_sequence_number_criteria()
Declaration
[Fact]
public virtual void SnapshotStore_should_not_load_a_snapshot_given_non_matching_sequence_number_criteria()
|
Improve this Doc
View Source
SnapshotStore_should_not_load_a_snapshot_given_non_matching_timestamp_criteria()
Declaration
[Fact]
public virtual void SnapshotStore_should_not_load_a_snapshot_given_non_matching_timestamp_criteria()
|
Improve this Doc
View Source
SnapshotStore_should_save_and_overwrite_snapshot_with_same_sequence_number()
Declaration
[Fact]
public virtual void SnapshotStore_should_save_and_overwrite_snapshot_with_same_sequence_number()
|
Improve this Doc
View Source
SnapshotStore_should_save_bigger_size_snapshot()
Declaration
[Fact]
public virtual void SnapshotStore_should_save_bigger_size_snapshot()
Implements
Extension Methods