Stopping the logback context
| Modifier and Type | Field and Description |
|---|---|
| public static final Duration | DEFAULT_DELAY
The default is no delay before shutdown. |
| private Duration | delay
The delay in milliseconds before the ShutdownHook stops the logback context |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Duration | |
| public void | |
| public void |
| DEFAULT_DELAY | back to summary |
|---|---|
| public static final Duration DEFAULT_DELAY The default is no delay before shutdown. | |
| delay | back to summary |
|---|---|
| private Duration delay The delay in milliseconds before the ShutdownHook stops the logback context | |
| DefaultShutdownHook | back to summary |
|---|---|
| public DefaultShutdownHook() | |
| getDelay | back to summary |
|---|---|
| public Duration getDelay() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |
| setDelay | back to summary |
|---|---|
| public void setDelay(Duration delay) The duration to wait before shutting down the current logback context. | |