This class is a Queue<T> wrapper that waits at Dequeue() until an item becomes available. More...
Public Member Functions | |
BlockingQueue (int maxSize, int lockTimeout) | |
Initializes a new instance of the BlockingQueue<T> class. More... | |
T | Dequeue () |
Dequeues the next item. This methods waits until an item becomes available or until the default timeout has expired. More... | |
T | Dequeue (TimeSpan timeout) |
Dequeues the next item. This methods waits until an item becomes available or until the timeout has expired. More... | |
T | Dequeue (int waitTime) |
Dequeues the next item. This methods waits until an item becomes available or until the timeout has expired. More... | |
void | Enqueue (T item) |
Enqueues an item. The default timeout is used to detect dead locks. More... | |
void | Enqueue (T item, TimeSpan timeout) |
Enqueues an item. The timeout is used to detect dead locks. More... | |
void | Enqueue (T value, int timeOut) |
Enqueues an item. The timeout is used to detect dead locks. More... | |
Properties | |
int | MaxSize [get] |
Gets the max queue length. More... | |
This class is a Queue<T> wrapper that waits at Dequeue() until an item becomes available.
T | Type of object in queue. |
|
inline |
Initializes a new instance of the BlockingQueue<T> class.
maxSize | The max queue length. |
lockTimeout | The max time in milliseconds to wait for a new item. |
|
inline |
Dequeues the next item. This methods waits until an item becomes available or until the default timeout has expired.
TimeoutException | No item available within given time. |
|
inline |
Dequeues the next item. This methods waits until an item becomes available or until the timeout has expired.
waitTime | The max wait time in milliseconds. |
TimeoutException | No item available within given time. |
|
inline |
Dequeues the next item. This methods waits until an item becomes available or until the timeout has expired.
timeout | The max time to wait. |
TimeoutException | No item available within given time. |
|
inline |
Enqueues an item. The default timeout is used to detect dead locks.
item | The item. |
TimeoutException | The item could not be enqueued within the given time. |
|
inline |
Enqueues an item. The timeout is used to detect dead locks.
item | The item. |
timeout | The timeout. |
TimeoutException | The item could not be enqueued within the given time. |
|
inline |
Enqueues an item. The timeout is used to detect dead locks.
value | The value. |
timeOut | The time out. |
TimeoutException | The item could not be enqueued within the given time. |
|
get |
Gets the max queue length.