Class ReplayFilter
Detect corrupt event stream during replay. It uses the WriterGuid and the SequenceNr in the replayed events to find events emitted by overlapping writers.
Implements
Inherited Members
Namespace: Akka.Persistence.Journal
Assembly: Akka.Persistence.dll
Syntax
public class ReplayFilter : ActorBase, IInternalActor
Constructors
| Improve this Doc View SourceReplayFilter(IActorRef, ReplayFilterMode, Int32, Int32, Boolean)
TBD
Declaration
public ReplayFilter(IActorRef persistentActor, ReplayFilterMode mode, int windowSize, int maxOldWriters, bool debugEnabled)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | persistentActor | TBD |
ReplayFilterMode | mode | TBD |
Int32 | windowSize | TBD |
Int32 | maxOldWriters | TBD |
Boolean | debugEnabled | TBD |
Properties
| Improve this Doc View SourceDebugEnabled
TBD
Declaration
public bool DebugEnabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
MaxOldWriters
TBD
Declaration
public int MaxOldWriters { get; }
Property Value
Type | Description |
---|---|
Int32 |
Mode
TBD
Declaration
public ReplayFilterMode Mode { get; }
Property Value
Type | Description |
---|---|
ReplayFilterMode |
PersistentActor
TBD
Declaration
public IActorRef PersistentActor { get; }
Property Value
Type | Description |
---|---|
IActorRef |
WindowSize
TBD
Declaration
public int WindowSize { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceProps(IActorRef, ReplayFilterMode, Int32, Int32, Boolean)
TBD
Declaration
public static Props Props(IActorRef persistentActor, ReplayFilterMode mode, int windowSize, int maxOldWriters, bool debugEnabled)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | persistentActor | TBD |
ReplayFilterMode | mode | TBD |
Int32 | windowSize | TBD |
Int32 | maxOldWriters | TBD |
Boolean | debugEnabled | TBD |
Returns
Type | Description |
---|---|
Props | TBD |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | This exception is thrown for a number of reasons. These include:
|
Receive(Object)
TBD
Declaration
protected override bool Receive(object message)
Parameters
Type | Name | Description |
---|---|---|
Object | message | TBD |
Returns
Type | Description |
---|---|
Boolean | TBD |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentException | |
IllegalStateException | This exception is thrown when either the replayed event is in the wrong order or from an old writer. |