public class ShutdownHandler
extends java.lang.Thread
Runnable implementation to be used as a Shutdown Hook.
Constructor and Description |
---|
ShutdownHandler(BootstrapProperties bp)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Attempts to stop then close
adapter . |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public ShutdownHandler(BootstrapProperties bp) throws java.lang.Exception
Creates a new instance.
bp
- the adapter to shut downjava.lang.Exception