API reference

RingDictionaryBuffer Class

This class will maintain a cache of entries and the oldest ones will expire when it runs out of space.

Overview

Public Member Functions

RingDictionaryBuffer
( int capacity )
void
Add
( TKey key,
TValue value )
bool
ContainsKey
( TKey key )
Returns true if the key exists in the buffer.
IEnumerable< TValue >
Extract
( TKey key )
Drain all the entries from the buffer that match a given key and return them.
IEnumerable< TValue >
Drain all the entries from the buffer and return them.
void
Clear ( )
Clears the buffer.

Details

Detailed Description

Others
TKey
The key type.
TValue
The value type.

Member Functions

Meta.Voice.Logging.VLogger.RingDictionaryBuffer< TKey, TValue >.RingDictionaryBuffer
( int capacity )
No description available.
void Meta.Voice.Logging.VLogger.RingDictionaryBuffer< TKey, TValue >.Add
( TKey key,
TValue value )
No description available.
bool Meta.Voice.Logging.VLogger.RingDictionaryBuffer< TKey, TValue >.ContainsKey
( TKey key )
Returns true if the key exists in the buffer.
Parameters
key
The key to check.
Returns
True if the key exists in the buffer. False otherwise.
IEnumerable<TValue> Meta.Voice.Logging.VLogger.RingDictionaryBuffer< TKey, TValue >.Extract
( TKey key )
Drain all the entries from the buffer that match a given key and return them.
Parameters
key
The key we are extracting.
Returns
All the entries in the buffer for that specific key.
IEnumerable<TValue> Meta.Voice.Logging.VLogger.RingDictionaryBuffer< TKey, TValue >.ExtractAll ( )
Drain all the entries from the buffer and return them.
Returns
All the entries in the buffer ordered by the key (e.g. correlation IDs).
void Meta.Voice.Logging.VLogger.RingDictionaryBuffer< TKey, TValue >.Clear ( )
Clears the buffer.