TibrvQueue::getLimitPolicy()
Method
Declaration
TibrvStatusgetLimitPolicy
(
tibrvQueueLimitPolicy& policy,
tibrv_u32& maxEvents,
tibrv_u32& discardAmount) const;
Purpose
Extract the limit properties of a queue.
Parameter |
Description |
|
Each queue has a policy for discarding events when a new event would cause the queue to exceed its The program supplies a variable, and the method stores the limit policy of the queue in that variable. |
|
Programs can limit the number of events that a queue can hold—either to curb queue growth, or implement a specialized dispatch semantics. Zero specifies an unlimited number of events. The program supplies a variable, and the method stores the maximum event limit of the queue in that variable. |
|
When the queue exceeds its maximum event limit, discard a block of events. This property specifies the number of events to discard. The program supplies a variable, and the method stores the discard amount of the queue in that variable. |
See Also
tibrvQueueLimitPolicy in
QUEUE.LIMIT_EXCEEDED in