Open topic with navigation

TIBCO Rendezvous® 8.7.0

# LimitPolicy

Constructor

## Visual Basic

    Public Sub New(
        ByVal limitPolicyStrategy As LimitPolicyStrategy,
        ByVal maxEvents As UInt32,
        ByVal discardAmount As UInt32 )

## C#

    public LimitPolicy(
        LimitPolicyStrategy limitPolicyStrategy,
        uint maxEvents,
        uint discardAmount );

## Purpose

Create a limit policy.

Parameter | Description
``limitPolicyStrategy`` | Each queue has a policy strategy for discarding events when a new event would cause the queue to exceed its `MaxEvents` limit. When `maxEvents` is zero (unlimited), the strategy must be LimitPolicyStrategy.DiscardNone.
``maxEvents`` | 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.
``discardAmount`` | When the queue exceeds its maximum event limit, discard a block of events. This argument specifies the number of events to discard. When `discardAmount` is zero, the strategy must be LimitPolicyStrategy.DiscardNone.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2023. Cloud Software Group, Inc. All Rights Reserved.