LimitPolicy
Constructor
Visual Basic
Public SubNew
(
ByVal limitPolicyStrategy As LimitPolicyStrategy,
ByVal maxEvents As UInt32,
ByVal discardAmount As UInt32 )
C#
publicLimitPolicy
(
LimitPolicyStrategy limitPolicyStrategy,
uint maxEvents,
uint discardAmount );
Purpose
Parameter |
Description |
|
Each queue has a policy strategy for discarding events when a new event would cause the queue to exceed its When |
|
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; in this case, the strategy must be LimitPolicyStrategy.DiscardNone. |
|
When the queue exceeds its maximum event limit, discard a block of events. This argument specifies the number of events to discard. When |