-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathClientStats.cs
More file actions
79 lines (64 loc) · 2.82 KB
/
ClientStats.cs
File metadata and controls
79 lines (64 loc) · 2.82 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
namespace Intrinio.Realtime;
using System;
public class ClientStats
{
private readonly UInt64 _socketDataMessages;
private readonly UInt64 _socketTextMessages;
private readonly UInt64 _queueDepth;
private readonly UInt64 _eventCount;
private readonly UInt64 _queueCapacity;
private readonly UInt64 _overflowQueueDepth;
private readonly UInt64 _overflowQueueCapacity;
private readonly UInt64 _droppedCount;
private readonly UInt64 _overflowCount;
private readonly UInt64 _priorityQueueDepth;
private readonly UInt64 _priorityQueueCapacity;
private readonly UInt64 _priorityQueueDroppedCount;
public ClientStats(UInt64 socketDataMessages,
UInt64 socketTextMessages,
UInt64 queueDepth,
UInt64 eventCount,
UInt64 queueCapacity,
UInt64 overflowQueueDepth,
UInt64 overflowQueueCapacity,
UInt64 droppedCount,
UInt64 overflowCount,
UInt64 priorityQueueDepth,
UInt64 priorityQueueCapacity,
UInt64 priorityQueueDroppedCount)
{
_socketDataMessages = socketDataMessages;
_socketTextMessages = socketTextMessages;
_queueDepth = queueDepth;
_eventCount = eventCount;
_queueCapacity = queueCapacity;
_overflowQueueDepth = overflowQueueDepth;
_overflowQueueCapacity = overflowQueueCapacity;
_droppedCount = droppedCount;
_overflowCount = overflowCount;
_priorityQueueDepth = priorityQueueDepth;
_priorityQueueCapacity = priorityQueueCapacity;
_priorityQueueDroppedCount = priorityQueueDroppedCount;
}
public UInt64 SocketDataMessages { get { return _socketDataMessages; } }
public UInt64 SocketTextMessages { get { return _socketTextMessages; } }
public UInt64 QueueDepth { get { return _queueDepth; } }
public UInt64 QueueCapacity { get { return _queueCapacity; } }
public UInt64 OverflowQueueDepth { get { return _overflowQueueDepth; } }
public UInt64 OverflowQueueCapacity { get { return _overflowQueueCapacity; } }
public UInt64 EventCount { get { return _eventCount; } }
public UInt64 DroppedCount { get { return _droppedCount; } }
public UInt64 OverflowCount { get { return _overflowCount; } }
public UInt64 PriorityQueueDroppedCount
{
get { return _priorityQueueDroppedCount; }
}
public UInt64 PriorityQueueCapacity
{
get { return _priorityQueueCapacity; }
}
public UInt64 PriorityQueueDepth
{
get { return _priorityQueueDepth; }
}
}