Table of Contents

Interface IResequencer<T>

Namespace
Sportradar.LiveData.Sdk.Common.Utils
Assembly
Sportradar.LiveData.Sdk.dll

Stateful component that allows to obtain items in correct sequence.

public interface IResequencer<T> : IStash<T>

Type Parameters

T

Type of the elements

Inherited Members

Properties

LastSeqNum

Latest sequence number

long? LastSeqNum { get; }

Property Value

long?

Methods

Add(T)

Add a new element.

bool Add(T item)

Parameters

item T

a new element

Returns

bool

true when item is in-sequence; false else (duplicate, out-of-sequence, etc.)

Clear(long?)

Clear complete state and possibly also reset first desired state.

Possible fresh star for sequence numbers
void Clear(long? fresh_seq_start = null)

Parameters

fresh_seq_start long?

Events

OnSeqData

Event fired when another in-sequence element was found.

event Action<T, bool> OnSeqData

Event Type

Action<T, bool>