Annotation Interface Shutdown


@Retention(RUNTIME) @Target(METHOD) public @interface Shutdown
Marks a no-argument lifecycle method invoked during unexport or shutdown.

Shutdown hooks should be idempotent and should release application-owned resources without exposing secrets in errors or status output. They do not control JVM shutdown and must not depend on transport-specific APIs.