C# Class Akka.Persistence.Journal.MemoryJournal

In-memory journal for testing purposes.
Inheritance: AsyncWriteProxy
ファイルを表示 Open project: rogeralsing/akka.net

Public Methods

Method Description
Add ( IPersistentRepresentation persistent ) : Messages
Delete ( string pid, long seqNr ) : Messages
HighestSequenceNr ( string pid ) : long
Read ( string pid, long fromSeqNr, long toSeqNr, long max ) : IEnumerable
ReadHighestSequenceNrAsync ( string persistenceId, long fromSequenceNr ) : Task
ReplayMessagesAsync ( IActorContext context, string persistenceId, long fromSequenceNr, long toSequenceNr, long max, Action recoveryCallback ) : Task
Update ( string pid, long seqNr, IPersistentRepresentation>.Func updater ) : Messages

Protected Methods

Method Description
DeleteMessagesToAsync ( string persistenceId, long toSequenceNr ) : Task
WriteMessagesAsync ( IEnumerable messages ) : Task>

Method Details

Add() public method

public Add ( IPersistentRepresentation persistent ) : Messages
persistent IPersistentRepresentation
return Messages

Delete() public method

public Delete ( string pid, long seqNr ) : Messages
pid string
seqNr long
return Messages

DeleteMessagesToAsync() protected method

protected DeleteMessagesToAsync ( string persistenceId, long toSequenceNr ) : Task
persistenceId string
toSequenceNr long
return Task

HighestSequenceNr() public method

public HighestSequenceNr ( string pid ) : long
pid string
return long

Read() public method

public Read ( string pid, long fromSeqNr, long toSeqNr, long max ) : IEnumerable
pid string
fromSeqNr long
toSeqNr long
max long
return IEnumerable

ReadHighestSequenceNrAsync() public method

public ReadHighestSequenceNrAsync ( string persistenceId, long fromSequenceNr ) : Task
persistenceId string
fromSequenceNr long
return Task

ReplayMessagesAsync() public method

public ReplayMessagesAsync ( IActorContext context, string persistenceId, long fromSequenceNr, long toSequenceNr, long max, Action recoveryCallback ) : Task
context IActorContext
persistenceId string
fromSequenceNr long
toSequenceNr long
max long
recoveryCallback Action
return Task

Update() public method

public Update ( string pid, long seqNr, IPersistentRepresentation>.Func updater ) : Messages
pid string
seqNr long
updater IPersistentRepresentation>.Func
return Messages

WriteMessagesAsync() protected method

protected WriteMessagesAsync ( IEnumerable messages ) : Task>
messages IEnumerable
return Task>