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.
|
void |
removeShutdownListener(ShutdownListener listener)
Removes a ShutdownListener from this ShutdownManager.
|
void |
replaceShutdownListener(ShutdownListener oldListener,
ShutdownListener newListener,
ShutdownPriority priority)
Reaplces an existing ShutdownListener with the new ShutdownListener.
|
void |
shutdown()
Shuts down all the listeners in this ShutdownManager.
|
void addShutdownListener(ShutdownListener listener)
listener
- The listener to be added.void addShutdownListener(ShutdownListener listener, ShutdownPriority priority)
listener
- The listener to be added.priority
- The priority of the listener when added.void replaceShutdownListener(ShutdownListener oldListener, ShutdownListener newListener, ShutdownPriority priority)
oldListener
- To be replaced.newListener
- The replacement.priority
- Replacement listeners priority.void removeShutdownListener(ShutdownListener listener)
listener
- The listener to be removed.void shutdown()
Copyright 2010-2017 ForgeRock AS.