public class DelayingShutdownHook extends ShutdownHookBase
| Modifier and Type | Field and Description |
|---|---|
static Duration |
DEFAULT_DELAY
The default is no delay before shutdown.
|
context| Constructor and Description |
|---|
DelayingShutdownHook() |
| Modifier and Type | Method and Description |
|---|---|
Duration |
getDelay() |
void |
run() |
void |
setDelay(Duration delay)
The duration to wait before shutting down the current logback context.
|
stopaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextpublic static final Duration DEFAULT_DELAY
Copyright © 2005–2016 QOS.ch. All rights reserved.