-
Notifications
You must be signed in to change notification settings - Fork 2k
/
LimitValue.cs
31 lines (29 loc) · 1.07 KB
/
LimitValue.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
namespace Orleans.Runtime.Configuration
{
/// <summary>
/// Data class encapsulating details of a particular system limit.
/// </summary>
[Serializable]
public class LimitValue
{
/// <summary>
/// Name of this Limit value
/// </summary>
public string Name { get; set; }
/// <summary>
/// 'Soft" limit threshold value for this Limit, after which Warnings will start to be generated
/// </summary>
public int SoftLimitThreshold { get; set; }
/// <summary>
/// 'Hard' limit threshold value, after which Errors will start to be generated and action take (for example, rejecting new request messages, etc)
/// to actively reduce the limit value back to within thresholds.
/// </summary>
public int HardLimitThreshold { get; set; }
public override string ToString()
{
return string.Format("Limit:{0},SoftLimitThreshold={1},HardLimitThreshold={2}",
Name, SoftLimitThreshold, HardLimitThreshold);
}
}
}