public class GracefulShutdownHandler extends Object implements Route.Decorator
Constructor and Description |
---|
GracefulShutdownHandler(Duration await) |
Modifier and Type | Method and Description |
---|---|
Route.Handler |
apply(Route.Handler next)
Chain the decorator within next handler.
|
void |
shutdown() |
void |
start() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
then, then
setRoute
public GracefulShutdownHandler(Duration await)
@Nonnull public Route.Handler apply(@Nonnull Route.Handler next)
Route.Decorator
apply
in interface Route.Decorator
next
- Next handler.public void shutdown() throws InterruptedException
InterruptedException
public void start()
Copyright © 2020. All rights reserved.