File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
api/src/main/java/it/renvins/serverpulse/api Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,11 @@ public interface ServerPulseAPI {
26
26
* Retrieves the instance of ITPSRetriever.
27
27
*
28
28
* @return The ITPSRetriever instance.
29
+ * @throws UnsupportedOperationException if the API implementation does not support TPS retrieval.
29
30
*/
30
- ITPSRetriever getTPSRetriever ();
31
+ default ITPSRetriever getTPSRetriever () {
32
+ throw new UnsupportedOperationException ("TPSRetriever is not supported in this API implementation." );
33
+ }
31
34
32
35
/**
33
36
* Retrieves the instance of IDiskRetriever.
Original file line number Diff line number Diff line change @@ -9,9 +9,6 @@ public interface ITPSRetriever {
9
9
* The first value is the average TPS over the last minute,
10
10
* the second value is the average TPS over the last 5 minutes,
11
11
* and the third value is the average TPS over the last 15 minutes.
12
- * @throws UnsupportedOperationException if the platform does not support this operation.
13
12
*/
14
- default double [] getTPS () {
15
- throw new UnsupportedOperationException ("This method is not supported on this platform." );
16
- }
13
+ double [] getTPS ();
17
14
}
You can’t perform that action at this time.
0 commit comments