public class DelayingShutdownHook extends ShutdownHookBase
| Modifier and Type | Field and Description |
|---|---|
static Duration |
DEFAULT_DELAY
The default is no delay before shutdown.
|
| 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.
|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContextequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextpublic static final Duration DEFAULT_DELAY
Copyright © 2010 - 2023 Adobe. All Rights Reserved