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.
|
stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public static final Duration DEFAULT_DELAY
Copyright © 2005–2021 QOS.ch. All rights reserved.