summaryrefslogtreecommitdiffstats
path: root/infra/cfg-init/src
diff options
context:
space:
mode:
Diffstat (limited to 'infra/cfg-init/src')
-rw-r--r--infra/cfg-init/src/main/java/io/fd/honeycomb/data/init/ShutdownHandler.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/infra/cfg-init/src/main/java/io/fd/honeycomb/data/init/ShutdownHandler.java b/infra/cfg-init/src/main/java/io/fd/honeycomb/data/init/ShutdownHandler.java
index fc350da6e..6a0096e1e 100644
--- a/infra/cfg-init/src/main/java/io/fd/honeycomb/data/init/ShutdownHandler.java
+++ b/infra/cfg-init/src/main/java/io/fd/honeycomb/data/init/ShutdownHandler.java
@@ -19,15 +19,20 @@ package io.fd.honeycomb.data.init;
import javax.annotation.Nonnull;
/**
- * Handles closing of closeable components
+ * Handles closing of closeable components.
*/
public interface ShutdownHandler {
/**
- * Register component to be properly closed on shutdown
+ * Registers component to be properly closed on shutdown.
*
* @param name component name
* @param component closeable component
*/
void register(@Nonnull final String name, @Nonnull final AutoCloseable component);
+
+ /**
+ * Performs shutdown for all registered components.
+ */
+ void performShutdown();
}