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, setContext
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public static final Duration DEFAULT_DELAY
Copyright © 2010 - 2020 Adobe. All Rights Reserved