public interface ShutdownManager
Modifier and Type | Method and Description |
---|---|
void |
addShutdownListener(ShutdownListener listener)
Adds a ShutdownListener to this ShutdownManager with the default priority.
|
void |
addShutdownListener(ShutdownListener listener,
ShutdownPriority priority)
Adds a ShutdownListener to this ShutdownManager with the supplied priority.
|
boolean |
isShutdown()
Find out whether the shutdown has been triggered.
|
void |
removeShutdownListener(ShutdownListener listener)
Removes a ShutdownListener from this ShutdownManager.
|
void |
replaceShutdownListener(ShutdownListener oldListener,
ShutdownListener newListener,
ShutdownPriority priority)
Replaces an existing ShutdownListener with the new ShutdownListener.
|
void |
shutdown()
Shuts down all the listeners in this ShutdownManager.
|
void addShutdownListener(ShutdownListener listener)
If ShutdownManager.shutdown()
has already been called, the listener should immediately be invoked.
listener
- The listener to be added.void addShutdownListener(ShutdownListener listener, ShutdownPriority priority)
If ShutdownManager.shutdown()
has already been called, the listener should immediately be invoked.
listener
- The listener to be added.priority
- The priority of the listener when added.void replaceShutdownListener(ShutdownListener oldListener, ShutdownListener newListener, ShutdownPriority priority)
If ShutdownManager.shutdown()
has already been called, the new listener should immediately be invoked.
oldListener
- To be replaced.newListener
- The replacement.priority
- Replacement listeners priority.void removeShutdownListener(ShutdownListener listener)
listener
- The listener to be removed.void shutdown()
boolean isShutdown()
true
if the ShutdownManager.shutdown()
method has been called.Copyright © 2010-2018, ForgeRock All Rights Reserved.