public class GracefulShutdown extends Object implements Extension
Constructor and Description |
---|
GracefulShutdown()
Creates a new shutdown handler and waits for existing request to finish.
|
GracefulShutdown(Duration await)
Creates a new shutdown handler and waits for existing requests to finish or for specified
amount of time.
|
Modifier and Type | Method and Description |
---|---|
void |
install(Jooby application)
Install, configure additional features to a Jooby application.
|
public GracefulShutdown(@Nonnull Duration await)
await
- Max time to wait for handlers to complete.public GracefulShutdown()
Copyright © 2020. All rights reserved.