Proton DotNet
|
Simple first in / first out delivery queue with no reordering for priority or other criteria. More...
Public Member Functions | |
void | Clear () |
Purge all currently queued deliveries from this delivery queue. More... | |
void | Close () |
Close the delivery Queue and purge any current deliveries and wakes all waiters currently blocked on a dequeue call. Once closed a delivery queue cannot be started again and no new deliveries can be queued. More... | |
T | Dequeue (TimeSpan timeout) |
Used to get the next available Delivery. The amount of time this method blocks is based on the timeout value that is supplied to it. More... | |
T | DequeueNoWait () |
Dequeue and return the next available delivery if one is available without the need to block, otherwise returns null. More... | |
void | Enqueue (T delivery) |
Adds the given delivery to the end of the delivery queue. More... | |
void | EnqueueFront (T delivery) |
Adds the given delivery to the front of the delivery queue. More... | |
void | Start () |
Starts the Queue and makes it available for dequeue operations, a non-started queue will always return null for any dequeue operations but will accept new queued deliveries for later dequeue when started. More... | |
void | Stop () |
Stops the delivery Queue which wakes any current waiters and prevents any future calls to dequeue a delivery from blocking. New incoming deliveries can still be queued in this state. More... | |
Properties | |
bool | IsRunning [get] |
bool | IsClosed [get] |
bool | IsEmpty [get] |
int | Count [get] |
![]() | |
int | Count [get] |
Retrieves the number of queued deliveries current held in this delivery queue. More... | |
bool | IsEmpty [get] |
Checks if the delivery queue is currently empty or not. More... | |
bool | IsRunning [get] |
Checks if the queue has been stopped or closed, if not then the queue is in a running state. More... | |
bool | IsClosed [get] |
Checks if the queue has been closed or is still available for use. When this method returns false this queue can still be in a stopped state and may not be returning deliveries. More... | |
Simple first in / first out delivery queue with no reordering for priority or other criteria.
T | The type of delivery object this Queue manages |
T | : | class |
|
inline |
Purge all currently queued deliveries from this delivery queue.
Implements Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< T >.
|
inline |
Close the delivery Queue and purge any current deliveries and wakes all waiters currently blocked on a dequeue call. Once closed a delivery queue cannot be started again and no new deliveries can be queued.
Implements Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< T >.
|
inline |
Used to get the next available Delivery. The amount of time this method blocks is based on the timeout value that is supplied to it.
timeout | The time to wait for a delivery to arrive |
ThreadInterruptedException | If the waiting thread is interrupted |
Implements Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< T >.
|
inline |
Dequeue and return the next available delivery if one is available without the need to block, otherwise returns null.
Implements Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< T >.
|
inline |
Adds the given delivery to the end of the delivery queue.
The Delivery to add to the Queue
Implements Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< T >.
|
inline |
Adds the given delivery to the front of the delivery queue.
The Delivery to add to the Queue
Implements Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< T >.
|
inline |
Starts the Queue and makes it available for dequeue operations, a non-started queue will always return null for any dequeue operations but will accept new queued deliveries for later dequeue when started.
Implements Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< T >.
|
inline |
Stops the delivery Queue which wakes any current waiters and prevents any future calls to dequeue a delivery from blocking. New incoming deliveries can still be queued in this state.
Implements Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< T >.