public class CloseHooks extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(Closeable hook)
Add a close hook, notified when the
run(Handler) method is called. |
void |
remove(Closeable hook)
Remove an existing hook.
|
public void add(Closeable hook)
run(Handler) method is called.hook - the hook to addpublic void remove(Closeable hook)
hook - the hook to removeCopyright © 2021. All rights reserved.