프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Settings | JournalSettings |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
TimestampProvider | ITimestampProvider |
메소드 | 설명 | |
---|---|---|
Close ( ) : void |
Closes database connection if exists.
|
|
CreateDbConnection ( ) : |
||
DeleteMessagesToAsync ( string persistenceId, long toSequenceNr ) : Task |
Asynchronously deletes all persisted messages identified by provided persistenceId up to provided message sequence number (inclusive).
|
|
ReadEvents ( object queryId, IEnumerable |
Performs
|
|
ReadHighestSequenceNrAsync ( string persistenceId, long fromSequenceNr ) : Task |
Asynchronously reads a highest sequence number of the event stream related with provided persistenceId.
|
|
ReplayMessagesAsync ( string persistenceId, long fromSequenceNr, long toSequenceNr, long max, IActorRef sender, Action |
Asynchronously replays all requested messages related to provided persistenceId, using provided sequence ranges (inclusive) with max number of messages replayed (counting from the beginning). Replay callback is invoked for each replayed message.
|
|
WriteMessagesAsync ( IEnumerable |
Asynchronously writes all persistent messages inside SQL Server database. Specific table used for message persistence may be defined through configuration within 'akka.persistence.journal.sql-server' scope with 'schema-name' and 'table-name' keys.
|
메소드 | 설명 | |
---|---|---|
CopyParamsToCommand ( |
Copies values from entities to database command.
|
|
CreateDbConnection ( string connectionString ) : |
Initializes a database connection.
|
|
GetConnectionString ( ) : string |
Returns connection string from either HOCON configuration or <connectionStrings> section of app.config.
|
|
JournalDbEngine ( ActorSystem system ) : System |
메소드 | 설명 | |
---|---|---|
CompleteCommand ( |
||
CreateTimestampProvider ( ) : ITimestampProvider | ||
IDisposable ( ) : void | ||
InsertInTransactionAsync ( |
||
ToJournalEntry ( IPersistentRepresentation message ) : |
||
TryUnwrapException ( |
protected abstract CopyParamsToCommand ( |
||
sqlCommand | ||
entry | ||
리턴 | void |
public CreateDbConnection ( ) : |
||
리턴 |
protected abstract CreateDbConnection ( string connectionString ) : |
||
connectionString | string | |
리턴 |
public DeleteMessagesToAsync ( string persistenceId, long toSequenceNr ) : Task | ||
persistenceId | string | |
toSequenceNr | long | |
리턴 | Task |
protected JournalDbEngine ( ActorSystem system ) : System | ||
system | ActorSystem | |
리턴 | System |
public ReadEvents ( object queryId, IEnumerable |
||
queryId | object | |
hints | IEnumerable |
|
sender | IActorRef | |
replayCallback | Action |
|
리턴 | Task |
public ReadHighestSequenceNrAsync ( string persistenceId, long fromSequenceNr ) : Task |
||
persistenceId | string | |
fromSequenceNr | long | |
리턴 | Task |
public ReplayMessagesAsync ( string persistenceId, long fromSequenceNr, long toSequenceNr, long max, IActorRef sender, Action |
||
persistenceId | string | Identifier of persistent messages stream to be replayed. |
fromSequenceNr | long | Lower inclusive sequence number bound. Unbound by default. |
toSequenceNr | long | Upper inclusive sequence number bound. Unbound by default. |
max | long | Maximum number of messages to be replayed. Unbound by default. |
sender | IActorRef | |
recoveryCallback | Action |
Action invoked for each replayed message. |
리턴 | Task |
public WriteMessagesAsync ( IEnumerable |
||
messages | IEnumerable |
|
리턴 | Task |