24
24
*/
25
25
public class AccountTier {
26
26
27
- private final int memory ;
28
- private final int storage ;
29
- private final int reservedMemory ;
30
- private final int reservedStorage ;
27
+ private final long memory ;
28
+ private final long storage ;
29
+ private final long reservedMemory ;
30
+ private final long reservedStorage ;
31
31
private final int streams ;
32
32
private final int consumers ;
33
33
private final AccountLimits limits ;
@@ -46,31 +46,47 @@ public class AccountTier {
46
46
* Memory Storage being used for Stream Message storage in this tier.
47
47
* @return the memory storage in bytes
48
48
*/
49
- public int getMemory () {
49
+ public long getMemoryBytes () {
50
50
return memory ;
51
51
}
52
52
53
53
/**
54
54
* File Storage being used for Stream Message storage in this tier.
55
55
* @return the storage in bytes
56
56
*/
57
- public int getStorage () {
57
+ public long getStorageBytes () {
58
58
return storage ;
59
59
}
60
60
61
61
/**
62
62
* Bytes that is reserved for memory usage by this account on the server
63
63
* @return the memory usage in bytes
64
64
*/
65
- public int getReservedMemory () {
65
+ public long getReservedMemory () {
66
+ return (int )reservedMemory ;
67
+ }
68
+
69
+ /**
70
+ * Bytes that is reserved for disk usage by this account on the server
71
+ * @return the disk usage in bytes
72
+ */
73
+ public long getReservedStorage () {
74
+ return reservedStorage ;
75
+ }
76
+
77
+ /**
78
+ * Bytes that is reserved for memory usage by this account on the server
79
+ * @return the memory usage in bytes
80
+ */
81
+ public long getReservedMemoryBytes () {
66
82
return reservedMemory ;
67
83
}
68
84
69
85
/**
70
86
* Bytes that is reserved for disk usage by this account on the server
71
87
* @return the disk usage in bytes
72
88
*/
73
- public int getReservedStorage () {
89
+ public long getReservedStorageBytes () {
74
90
return reservedStorage ;
75
91
}
76
92
@@ -97,4 +113,24 @@ public int getConsumers() {
97
113
public AccountLimits getLimits () {
98
114
return limits ;
99
115
}
116
+
117
+ /**
118
+ * @deprecated use getMemoryBytes instead
119
+ * Memory Storage being used for Stream Message storage in this tier.
120
+ * @return the memory storage in bytes
121
+ */
122
+ @ Deprecated
123
+ public int getMemory () {
124
+ return (int )memory ;
125
+ }
126
+
127
+ /**
128
+ * @deprecated use getStorageBytes instead
129
+ * File Storage being used for Stream Message storage in this tier.
130
+ * @return the storage in bytes
131
+ */
132
+ @ Deprecated
133
+ public int getStorage () {
134
+ return (int )storage ;
135
+ }
100
136
}
0 commit comments