C# Class Akka.Persistence.Sql.Common.Snapshot.SqlSnapshotStore

Abstract snapshot store implementation, customized to work with SQL-based persistence providers.
Inheritance: Akka.Persistence.Snapshot.SnapshotStore
Datei anzeigen Open project: rogeralsing/akka.net

Public Methods

Method Description
CreateDbConnection ( ) : DbConnection

Returns a new instance of database connection.

Protected Methods

Method Description
CreateDbConnection ( string connectionString ) : DbConnection

Returns a new instance of database connection.

DeleteAsync ( SnapshotMetadata metadata ) : Task
DeleteAsync ( string persistenceId, SnapshotSelectionCriteria criteria ) : Task
GetConnectionString ( ) : string
LoadAsync ( string persistenceId, SnapshotSelectionCriteria criteria ) : Task

Asynchronously loads snapshot with the highest sequence number for a persistent actor/view matching specified criteria.

PostStop ( ) : void
SaveAsync ( SnapshotMetadata metadata, object snapshot ) : Task

Asynchronously stores a snapshot with metadata as record in SQL table.

SqlSnapshotStore ( ) : System.Collections.Generic

Private Methods

Method Description
CompleteCommand ( DbCommand command, DbConnection connection ) : void
ToSnapshotEntry ( SnapshotMetadata metadata, object snapshot ) : SnapshotEntry

Method Details

CreateDbConnection() public method

Returns a new instance of database connection.
public CreateDbConnection ( ) : DbConnection
return System.Data.Common.DbConnection

CreateDbConnection() protected abstract method

Returns a new instance of database connection.
protected abstract CreateDbConnection ( string connectionString ) : DbConnection
connectionString string
return System.Data.Common.DbConnection

DeleteAsync() protected method

protected DeleteAsync ( SnapshotMetadata metadata ) : Task
metadata SnapshotMetadata
return Task

DeleteAsync() protected method

protected DeleteAsync ( string persistenceId, SnapshotSelectionCriteria criteria ) : Task
persistenceId string
criteria SnapshotSelectionCriteria
return Task

GetConnectionString() protected method

protected GetConnectionString ( ) : string
return string

LoadAsync() protected method

Asynchronously loads snapshot with the highest sequence number for a persistent actor/view matching specified criteria.
protected LoadAsync ( string persistenceId, SnapshotSelectionCriteria criteria ) : Task
persistenceId string
criteria SnapshotSelectionCriteria
return Task

PostStop() protected method

protected PostStop ( ) : void
return void

SaveAsync() protected method

Asynchronously stores a snapshot with metadata as record in SQL table.
protected SaveAsync ( SnapshotMetadata metadata, object snapshot ) : Task
metadata SnapshotMetadata
snapshot object
return Task

SqlSnapshotStore() protected method

protected SqlSnapshotStore ( ) : System.Collections.Generic
return System.Collections.Generic