Class DefaultShutdownHook
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.hook.ShutdownHookBase
ch.qos.logback.core.hook.DefaultShutdownHook
- All Implemented Interfaces:
ShutdownHook, ContextAware, Runnable
ShutdownHook implementation that stops the Logback context
after a specified delay. The default delay is 0 ms (zero).
Stopping the logback context
- Author:
- Mike Reinhold
-
Field Summary
FieldsFields inherited from class ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ShutdownHookBase
stopMethods inherited from class ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Field Details
-
DEFAULT_DELAY
The default is no delay before shutdown.
-
-
Constructor Details
-
DefaultShutdownHook
public DefaultShutdownHook()Creates a DefaultShutdownHook using the default delay (DEFAULT_DELAY).
-
-
Method Details
-
getDelay
-
setDelay
-
run
-