diff options
author | Luck <git@lucko.me> | 2018-06-29 22:58:19 +0100 |
---|---|---|
committer | Luck <git@lucko.me> | 2018-06-29 22:58:19 +0100 |
commit | fa2a1e5661ef40323a36283fbf913b6a1258950b (patch) | |
tree | 17dbe91c52a9a8080036e1e2463490ea2e867adb /spark-common/src/main/java/me/lucko/spark/profiler | |
parent | 4e150e2ff03181b32b6fcfdbd9c6253fc099fa58 (diff) | |
download | spark-fa2a1e5661ef40323a36283fbf913b6a1258950b.tar.gz spark-fa2a1e5661ef40323a36283fbf913b6a1258950b.tar.bz2 spark-fa2a1e5661ef40323a36283fbf913b6a1258950b.zip |
Implement GC notifications as part of the monitoring command
Diffstat (limited to 'spark-common/src/main/java/me/lucko/spark/profiler')
-rw-r--r-- | spark-common/src/main/java/me/lucko/spark/profiler/TickCounter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/profiler/TickCounter.java b/spark-common/src/main/java/me/lucko/spark/profiler/TickCounter.java index ac804f8..31d7f9a 100644 --- a/spark-common/src/main/java/me/lucko/spark/profiler/TickCounter.java +++ b/spark-common/src/main/java/me/lucko/spark/profiler/TickCounter.java @@ -23,7 +23,7 @@ package me.lucko.spark.profiler; /** * A hook with the game's "tick loop". */ -public interface TickCounter { +public interface TickCounter extends AutoCloseable { /** * Starts the counter @@ -33,6 +33,7 @@ public interface TickCounter { /** * Stops the counter */ + @Override void close(); /** |