Proton DotNet
|
A generic delivery queue used to hold messages or other delivery objects that need to be consumed in order and also provides put-back options for redelivery scenarios. More...
Public Member Functions | |
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... | |
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 | 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... | |
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... | |
void | Clear () |
Purge all currently queued deliveries from this delivery queue. More... | |
Properties | |
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... | |
A generic delivery queue used to hold messages or other delivery objects that need to be consumed in order and also provides put-back options for redelivery scenarios.
T | The type of delivery object this Queue manages |
T | : | class |
void Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< T >.Clear | ( | ) |
Purge all currently queued deliveries from this delivery queue.
Implemented in Apache.Qpid.Proton.Client.Utilities.FifoDeliveryQueue< T >.
void Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< T >.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.
Implemented in Apache.Qpid.Proton.Client.Utilities.FifoDeliveryQueue< T >.
T Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< 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.
timeout | The time to wait for a delivery to arrive |
ThreadInterruptedException | If the waiting thread is interrupted |
Implemented in Apache.Qpid.Proton.Client.Utilities.FifoDeliveryQueue< T >.
T Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< T >.DequeueNoWait | ( | ) |
Dequeue and return the next available delivery if one is available without the need to block, otherwise returns null.
Implemented in Apache.Qpid.Proton.Client.Utilities.FifoDeliveryQueue< T >.
void Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< T >.Enqueue | ( | T | delivery | ) |
Adds the given delivery to the end of the delivery queue.
The Delivery to add to the Queue
Implemented in Apache.Qpid.Proton.Client.Utilities.FifoDeliveryQueue< T >.
void Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< T >.EnqueueFront | ( | T | delivery | ) |
Adds the given delivery to the front of the delivery queue.
The Delivery to add to the Queue
Implemented in Apache.Qpid.Proton.Client.Utilities.FifoDeliveryQueue< T >.
void Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< T >.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.
Implemented in Apache.Qpid.Proton.Client.Utilities.FifoDeliveryQueue< T >.
void Apache.Qpid.Proton.Client.Utilities.IDeliveryQueue< T >.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.
Implemented in Apache.Qpid.Proton.Client.Utilities.FifoDeliveryQueue< T >.
|
get |
Retrieves the number of queued deliveries current held in this delivery queue.
|
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.
|
get |
Checks if the delivery queue is currently empty or not.
|
get |
Checks if the queue has been stopped or closed, if not then the queue is in a running state.