Interface IStash<T>
- Namespace
 - Sportradar.LiveData.Sdk.Common.Utils
 
- Assembly
 - Sportradar.LiveData.Sdk.dll
 
Stateful component that allows to stash elements until needed. You get duplicate detection and ordering guarantees.
public interface IStash<T>
  Type Parameters
TType of the elements
Properties
MaxSeqWaiting
The waiting element with maximum sequence number.
T MaxSeqWaiting { get; }
  Property Value
- T
 
MinSeqWaiting
The waiting element with minimum sequence number.
T MinSeqWaiting { get; }
  Property Value
- T
 
Methods
AddStash(T)
Add an item to stash. (When using the resequencer as kind of a stash for elements).
void AddStash(T item)
  Parameters
itemTa new element
ClearWaiting()
Clear waiting (out-of-sequence) elements.
void ClearWaiting()
  GetWaiting()
Get the out-of-sequence elements that are still waiting.
ReadOnlyCollection<T> GetWaiting()
  Returns
- ReadOnlyCollection<T>
 the waiting elements
Events
OnDuplicate
How to resolve a duplicate. (seq_number, old, fresh) => replacement element
event Func<long, T, T, T> OnDuplicate