Table of Contents

Class FixedWindowRateLimitPolicyAttribute

Namespace
Phoesion.Glow.SDK.Firefly
Assembly
Phoesion.Glow.SDK.Firefly.Annotations.dll

Declare a Fixed-Window Rate-Limit policy.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true, Inherited = true)]
public class FixedWindowRateLimitPolicyAttribute : RateLimitPolicyAttribute
Inheritance
object
Attribute
FixedWindowRateLimitPolicyAttribute
Inherited Members

Remarks

You must use with [EnableRateLimit(..)] to enable the policy

Constructors

FixedWindowRateLimitPolicyAttribute(string, int, int, int)

Declare a Fixed-Window Rate-Limit policy

public FixedWindowRateLimitPolicyAttribute(string PolicyName, int Window, int PermitLimit, int QueueLimit)

Parameters

PolicyName string

Name of the policy.

Window int

Specifies the time window (in seconds) that takes in the requests.

PermitLimit int

Maximum number of permit counters that can be allowed in a window.

QueueLimit int

Maximum cumulative permit count of queued acquisition requests

Properties

PermitLimit

Maximum number of permit counters that can be allowed in a window. Must be set to a value greater than 0

public int PermitLimit { get; set; }

Property Value

int

QueueLimit

Maximum cumulative permit count of queued acquisition requests. Must be set to a value greater than 0

public int QueueLimit { get; set; }

Property Value

int

Window

Specifies the time window (in seconds) that takes in the requests. Must be set to a value greater than 0

public int Window { get; set; }

Property Value

int