[This is preliminary documentation and is subject to change.]
Constructor
Namespace: NFX.ThrottlingAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public SlidingWindowThrottle(
string name,
int throttleLimit,
int throttleInterval,
int bucketsPerSecond = 5,
string unit = null
)
public SlidingWindowThrottle(
string name,
int throttleLimit,
int throttleInterval,
int bucketsPerSecond = 5,
string unit = null
)
Public Sub New (
name As String,
throttleLimit As Integer,
throttleInterval As Integer,
Optional bucketsPerSecond As Integer = 5,
Optional unit As String = Nothing
)
Public Sub New (
name As String,
throttleLimit As Integer,
throttleInterval As Integer,
Optional bucketsPerSecond As Integer = 5,
Optional unit As String = Nothing
)
public:
SlidingWindowThrottle(
String^ name,
int throttleLimit,
int throttleInterval,
int bucketsPerSecond = 5,
String^ unit = nullptr
)
public:
SlidingWindowThrottle(
String^ name,
int throttleLimit,
int throttleInterval,
int bucketsPerSecond = 5,
String^ unit = nullptr
)
new :
name : string *
throttleLimit : int *
throttleInterval : int *
?bucketsPerSecond : int *
?unit : string
(* Defaults:
let _bucketsPerSecond = defaultArg bucketsPerSecond 5
let _unit = defaultArg unit null
*)
-> SlidingWindowThrottle
new :
name : string *
throttleLimit : int *
throttleInterval : int *
?bucketsPerSecond : int *
?unit : string
(* Defaults:
let _bucketsPerSecond = defaultArg bucketsPerSecond 5
let _unit = defaultArg unit null
*)
-> SlidingWindowThrottle
Parameters
- name
- Type:
System String
Name of this instance
- throttleLimit
- Type:
System Int32
Throttling limit per throttleInterval
- throttleInterval
- Type:
System Int32
Throttling interval in number of seconds
- bucketsPerSecond (Optional)
- Type:
System Int32
Number of buckets per second to calculate internal running sum.
The greater the value the more precise the avg calculation is and the longer it takes to
calculate
- unit (Optional)
- Type:
System String
Unit of measurement