Interface ShuttingDownHandler
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ShuttingDownHandler
Callback to be invoked when Glue Desktop is shutting down.- Since:
- 1.4.12
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classShuttingDownHandler.ShuttingDownArgumentsArguments describing shutting down.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletionStage<Boolean>onShuttingDown(ShuttingDownHandler.ShuttingDownArguments args)The method called on shutdown.
-
-
-
Method Detail
-
onShuttingDown
CompletionStage<Boolean> onShuttingDown(ShuttingDownHandler.ShuttingDownArguments args)
The method called on shutdown. Return a stage that completes with a boolean if shutdown should be prevented.- Parameters:
args- shutdown arguments- Returns:
- a stage that completes with a boolean that indicates if shutdown should be prevented, never
null
-
-