Interface IPoisonQueue
- Namespace
- Sportradar.LiveData.Sdk.Common.Interfaces
- Assembly
- Sportradar.LiveData.Sdk.dll
Poison queue interface
public interface IPoisonQueue
Properties
ProviderType
Poison queue must be assigned a to particular feed provider.
ProtocolProviderType ProviderType { get; }
Property Value
Methods
Enqueue(PoisonQueueElt)
Enqueue a new poison element. Throws PoisonQueueException if there is already poison elements for the same match enqueued.
void Enqueue(PoisonQueueElt obj)
Parameters
objPoisonQueueEltPoison element
IsMatchPoisonous(IList<long>)
Checks whether there is a poison element linked to this match
bool IsMatchPoisonous(IList<long> match_ids)
Parameters
Returns
- bool
Returns true if there is a poison element linked to this match
WaitForElementRemoved(TimeSpan)
Waits until an element is removed (promoted or deceased) from the poison queue.
bool WaitForElementRemoved(TimeSpan wait_timeout)
Parameters
wait_timeoutTimeSpanWait timeout
Returns
- bool
True if the wait was successful or false if the timeout occurred.
Events
OnPoisonQueueEltDead
Event raised whenever an element is to be dumped into dead letter queue.
event PoisonQueueDelegates.PoisonQueueEltDead OnPoisonQueueEltDead
Event Type
OnPoisonQueueEltPromoted
Event raised whenever an element is promoted from Poison queue and moved back into Main queue.
event PoisonQueueDelegates.PoisonQueueEltPromoted OnPoisonQueueEltPromoted