@Documented @Retention(value=RUNTIME) @Target(value={ANNOTATION_TYPE,METHOD}) @HasHandlerAttributes public @interface ShutdownHandler
CompletableFuture
on the
annotated method.
The phase()
defines the moment the member method should be invoked. The higher the provided phase
,
the earlier this method will be executed during shutdown.
This annotation is only allowed on methods and as a meta-annotation.
Modifier and Type | Required Element and Description |
---|---|
int |
phase
An
int defining the moment in the shutdown cycle the member method should be invoked. |
public abstract int phase
int
defining the moment in the shutdown cycle the member method should be invoked. The higher the
provided phase
, the earlier this method will be executed during shutdown. The Phase
constants can
be used to this end.int
defining the moment in the shutdown cycle the member method should be invokedCopyright © 2010–2022. All rights reserved.