Filter implementations may listen for if special processing is required during a graceful
shutdown.
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private Set | |
| private TimeUnit | |
| public static final Object |
| Access | Constructor and Description |
|---|---|
| public | ShutdownEvent(final long gracePeriod, final TimeUnit timeUnit)
Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public long | |
| public Set | getShutdownTasks()
Returns: a |
| public TimeUnit | |
| public Object |
| gracePeriod | back to summary |
|---|---|
| private long gracePeriod | |
| shutdownFutures | back to summary |
|---|---|
| private Set<Callable<Filter>> shutdownFutures | |
| timeUnit | back to summary |
|---|---|
| private TimeUnit timeUnit | |
| TYPE | back to summary |
|---|---|
| public static final Object TYPE | |
| ShutdownEvent | back to summary |
|---|---|
| public ShutdownEvent(final long gracePeriod, final TimeUnit timeUnit) Create a new | |
| addShutdownTask | back to summary |
|---|---|
| public void addShutdownTask(final Callable<Filter> future) Adds a task to this event. Tasks should be called on separate threads after all | |
| getGracePeriod | back to summary |
|---|---|
public long getGracePeriod()
| |
| getShutdownTasks | back to summary |
|---|---|
public Set
| |
| getTimeUnit | back to summary |
|---|---|
| public TimeUnit getTimeUnit() | |
| type | back to summary |
|---|---|
| public Object type() Implements org.
| |