Class MemoryJournal
In-memory journal for testing purposes.
Inheritance
MemoryJournal
Assembly: Akka.Persistence.dll
Syntax
public class MemoryJournal : AsyncWriteJournal, IInternalActor, IAsyncRecovery
Properties
|
Improve this Doc
View Source
Messages
Declaration
protected virtual ConcurrentDictionary<string, LinkedList<IPersistentRepresentation>> Messages { get; }
Property Value
Methods
|
Improve this Doc
View Source
Add(IPersistentRepresentation)
Declaration
public IDictionary<string, LinkedList<IPersistentRepresentation>> Add(IPersistentRepresentation persistent)
Parameters
Returns
|
Improve this Doc
View Source
Delete(String, Int64)
Declaration
public IDictionary<string, LinkedList<IPersistentRepresentation>> Delete(string pid, long seqNr)
Parameters
Returns
|
Improve this Doc
View Source
DeleteMessagesToAsync(String, Int64)
Declaration
protected override Task DeleteMessagesToAsync(string persistenceId, long toSequenceNr)
Parameters
Type |
Name |
Description |
String |
persistenceId |
|
Int64 |
toSequenceNr |
|
Returns
Overrides
|
Improve this Doc
View Source
HighestSequenceNr(String)
Declaration
public long HighestSequenceNr(string pid)
Parameters
Type |
Name |
Description |
String |
pid |
|
Returns
|
Improve this Doc
View Source
Read(String, Int64, Int64, Int64)
Declaration
public IEnumerable<IPersistentRepresentation> Read(string pid, long fromSeqNr, long toSeqNr, long max)
Parameters
Returns
|
Improve this Doc
View Source
ReadHighestSequenceNrAsync(String, Int64)
Declaration
public override Task<long> ReadHighestSequenceNrAsync(string persistenceId, long fromSequenceNr)
Parameters
Type |
Name |
Description |
String |
persistenceId |
|
Int64 |
fromSequenceNr |
|
Returns
Overrides
|
Improve this Doc
View Source
ReceivePluginInternal(Object)
Declaration
protected override bool ReceivePluginInternal(object message)
Parameters
Type |
Name |
Description |
Object |
message |
|
Returns
Overrides
|
Improve this Doc
View Source
ReplayMessagesAsync(IActorContext, String, Int64, Int64, Int64, Action<IPersistentRepresentation>)
Declaration
public override Task ReplayMessagesAsync(IActorContext context, string persistenceId, long fromSequenceNr, long toSequenceNr, long max, Action<IPersistentRepresentation> recoveryCallback)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
Update(String, Int64, Func<IPersistentRepresentation, IPersistentRepresentation>)
Declaration
public IDictionary<string, LinkedList<IPersistentRepresentation>> Update(string pid, long seqNr, Func<IPersistentRepresentation, IPersistentRepresentation> updater)
Parameters
Returns
|
Improve this Doc
View Source
WriteMessagesAsync(IEnumerable<AtomicWrite>)
Declaration
protected override Task<IImmutableList<Exception>> WriteMessagesAsync(IEnumerable<AtomicWrite> messages)
Parameters
Returns
Type |
Description |
Task<System.Collections.Immutable.IImmutableList<Exception>> |
|
Overrides
Implements
Extension Methods