public class ShutdownService
extends java.lang.Object
implements java.lang.AutoCloseable
This class can be used to register closing callbacks, call them
individually, and/or call all of them (in LIFO order) with
the close() method.
| Constructor and Description |
|---|
ShutdownService() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close all the registered callbacks, in the reverse order of registration.
|
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.