|
Kinetica C# API
Version 7.2.3.1
|
A stripe within a worker queue. More...
Public Member Functions | |
| Stripe (int capacity) | |
| List< T >? | Add (T record) |
| Adds a record to the stripe. More... | |
| List< List< T > > | AddRange (IReadOnlyList< T > records) |
| Adds multiple records to the stripe. More... | |
| List< T >? | Flush () |
| Flushes all records from the stripe, regardless of count. More... | |
Properties | |
| int | Count [get] |
| Gets the current count of records in the stripe. More... | |
A stripe within a worker queue.
Each stripe has its own lock to reduce contention.
| T | The record type. |
Definition at line 11 of file StripedWorkerQueue.cs.
Definition at line 17 of file StripedWorkerQueue.cs.
|
inline |
Adds a record to the stripe.
Returns the batch if capacity is reached, null otherwise.
Definition at line 26 of file StripedWorkerQueue.cs.
|
inline |
Adds multiple records to the stripe.
Returns any complete batches.
Definition at line 44 of file StripedWorkerQueue.cs.
|
inline |
Flushes all records from the stripe, regardless of count.
Definition at line 65 of file StripedWorkerQueue.cs.
|
get |
Gets the current count of records in the stripe.
Definition at line 82 of file StripedWorkerQueue.cs.