|
PeanutButter
|
Provides an easy mechanism for a sliding window of data This collection is not thread-safe - you should add your own thread-safety as appropriate. More...
Public Member Functions | |
| ISlidingWindowItem< T > | ItemAt (int index) |
| Returns the raw item at the provided index - only really useful for diagnostics. | |
| void | Trim () |
| Trims out stale or over-allocated items. Most useful when the collection is created with a max time to live and you'd like to get the current snapshot. | |
Properties | |
| ISlidingWindowItem< T > | First [get] |
| Provides the first sliding window item in the collection, if available, or null. | |
| ISlidingWindowItem< T > | Last [get] |
| Provides the last sliding window item in the collection, if available, or null. | |
| TimeSpan | MaxLifeSpan [get] |
| The age of the oldest record in the collection. | |
Provides an easy mechanism for a sliding window of data This collection is not thread-safe - you should add your own thread-safety as appropriate.
| T |
| ISlidingWindowItem< T > PeanutButter.Utils.ISlidingWindow< T >.ItemAt | ( | int | index | ) |
Returns the raw item at the provided index - only really useful for diagnostics.
| index |
Implemented in PeanutButter.Utils.SlidingWindow< T >.
| void PeanutButter.Utils.ISlidingWindow< T >.Trim | ( | ) |
Trims out stale or over-allocated items. Most useful when the collection is created with a max time to live and you'd like to get the current snapshot.
Implemented in PeanutButter.Utils.SlidingWindow< T >.
|
get |
Provides the first sliding window item in the collection, if available, or null.
Implemented in PeanutButter.Utils.SlidingWindow< T >.
|
get |
Provides the last sliding window item in the collection, if available, or null.
Implemented in PeanutButter.Utils.SlidingWindow< T >.
|
get |
The age of the oldest record in the collection.
Implemented in PeanutButter.Utils.SlidingWindow< T >.