public final class OryxShutdownHook extends Object implements Runnable
Runtime.addShutdownHook(Thread) or similar mechanisms, this is a
Runnable that is configured with a list of Closeables that are to be closed
at shutdown, when its run() is called.| Constructor and Description |
|---|
OryxShutdownHook() |
public boolean addCloseable(Closeable closeable)
closeable - object to close at shutdowntrue iff this is the first object to be registeredIllegalStateException - if already shutting downCopyright © 2014–2018. All rights reserved.