public class ShutdownEvent extends Object implements FilterChainEvent
Filter implementations may listen for if special processing is required
during a graceful shutdown.| Constructor and Description |
|---|
ShutdownEvent(long gracePeriod,
TimeUnit timeUnit)
Create a new
ShutdownEvent with the grace period for the shutdown. |
| Modifier and Type | Method and Description |
|---|---|
void |
addShutdownTask(Callable<Filter> future)
Adds a task to this event.
|
long |
getGracePeriod() |
Set<Callable<Filter>> |
getShutdownTasks() |
TimeUnit |
getTimeUnit() |
Object |
type() |
public static final Object TYPE
public ShutdownEvent(long gracePeriod,
TimeUnit timeUnit)
ShutdownEvent with the grace period for the shutdown.public Object type()
type in interface FilterChainEventpublic void addShutdownTask(Callable<Filter> future)
Filters in the
chain have been notified of the impending shutdown.public Set<Callable<Filter>> getShutdownTasks()
Set of Callable instances that need to be
checked in order to proceed with terminating processing.public long getGracePeriod()
Copyright © 2017–2019 Oracle Corporation. All rights reserved.