Class AsyncWriteProxy
A journal that delegates actual storage to a target actor. For testing only.
Implements
Inherited Members
Namespace: Akka.Persistence.Journal
Assembly: Akka.Persistence.dll
Syntax
public abstract class AsyncWriteProxy : AsyncWriteJournal, IInternalActor, IAsyncRecovery, IWithUnboundedStash, IWithUnrestrictedStash, IActorStash, IRequiresMessageQueue<IUnboundedDequeBasedMessageQueueSemantics>, IWithTimers
Constructors
| Edit this page View SourceAsyncWriteProxy()
Declaration
protected AsyncWriteProxy()
Properties
| Edit this page View SourceStash
TBD
Declaration
public IStash Stash { get; set; }
Property Value
Type | Description |
---|---|
IStash |
Timeout
TBD
Declaration
public abstract TimeSpan Timeout { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Timers
Gets or sets the TimerScheduler. This will be automatically populated by the framework in base constructor. Implement this as an auto property.
Declaration
public ITimerScheduler Timers { get; set; }
Property Value
Type | Description |
---|---|
ITimerScheduler |
Methods
| Edit this page View SourceAroundPreStart()
TBD
Declaration
public override void AroundPreStart()
Overrides
| Edit this page View SourceAroundReceive(Receive, object)
TBD
Declaration
protected override bool AroundReceive(Receive receive, object message)
Parameters
Type | Name | Description |
---|---|---|
Receive | receive | TBD |
object | message | TBD |
Returns
Type | Description |
---|---|
bool | TBD |
Overrides
| Edit this page View SourceDeleteMessagesToAsync(string, long, CancellationToken)
TBD
Declaration
protected override Task DeleteMessagesToAsync(string persistenceId, long toSequenceNr, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | persistenceId | TBD |
long | toSequenceNr | TBD |
CancellationToken | cancellationToken | CancellationToken used to signal cancelled snapshot operation |
Returns
Type | Description |
---|---|
Task | TBD |
Overrides
Exceptions
Type | Condition |
---|---|
TimeoutException | This exception is thrown when the store has not been initialized. |
ReadHighestSequenceNrAsync(string, long, CancellationToken)
TBD
Declaration
public override Task<long> ReadHighestSequenceNrAsync(string persistenceId, long fromSequenceNr, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | persistenceId | TBD |
long | fromSequenceNr | TBD |
CancellationToken | cancellationToken | CancellationToken used to signal cancelled snapshot operation |
Returns
Type | Description |
---|---|
Task<long> | TBD |
Overrides
Exceptions
Type | Condition |
---|---|
TimeoutException | This exception is thrown when the store has not been initialized. |
ReplayMessagesAsync(IActorContext, string, long, long, long, Action<IPersistentRepresentation>)
TBD
Declaration
public override Task ReplayMessagesAsync(IActorContext context, string persistenceId, long fromSequenceNr, long toSequenceNr, long max, Action<IPersistentRepresentation> recoveryCallback)
Parameters
Type | Name | Description |
---|---|---|
IActorContext | context | TBD |
string | persistenceId | TBD |
long | fromSequenceNr | TBD |
long | toSequenceNr | TBD |
long | max | TBD |
Action<IPersistentRepresentation> | recoveryCallback | TBD |
Returns
Type | Description |
---|---|
Task | TBD |
Overrides
Exceptions
Type | Condition |
---|---|
TimeoutException | This exception is thrown when the store has not been initialized. |
WriteMessagesAsync(IEnumerable<AtomicWrite>, CancellationToken)
TBD
Declaration
protected override Task<IImmutableList<Exception>> WriteMessagesAsync(IEnumerable<AtomicWrite> messages, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<AtomicWrite> | messages | TBD |
CancellationToken | cancellationToken | CancellationToken used to signal cancelled snapshot operation |
Returns
Type | Description |
---|---|
Task<IImmutableList<Exception>> | TBD |
Overrides
Exceptions
Type | Condition |
---|---|
TimeoutException | This exception is thrown when the store has not been initialized. |