public interface GracefulShutdownHook
A service can register itself with the GracefulShutdownService like this:
{@code
class MyService implements GracefulShutdownHook {
private final GracefulShutdownService shutdownService;| Modifier and Type | Method and Description |
|---|---|
void |
doGracefulShutdown()
Execute shutdown tasks for the service that implements this interface.
|
void doGracefulShutdown()
throws Exception
GracefulShutdownHook must be thread-safe.ExceptionCopyright © 2012–2021 Graylog, Inc.. All rights reserved.