public interface ShutdownListener
| Modifier and Type | Method and Description |
|---|---|
default void |
prepareForShutdown()
This method is called just before the system shuts down in order to give components a chance to finish
essential operations before the actual
shutdown() is performed. |
void |
shutdown() |
default void prepareForShutdown()
shutdown() is performed. Implementations should block until
they're finished, but should also make sure to timeout after a few seconds if they can't finish quickly.void shutdown()
Copyright © 2021. All rights reserved.