Package org.forgerock.openig.tools
Interface LifeCycle
- All Known Implementing Classes:
CacheSessionService
,NotificationServiceImpl
public interface LifeCycle
Manages Lifecycle on an object. The
start()
method can be used to initialize state of
the managed object (obtaining resources, connections, ...), where respectively the stop()
method can be used to free resources used by the managed object (releasing connections, clearing caches, ...).
Note that Lifecycle is only used with AmService
associated services.
-
Method Summary
-
Method Details
-
start
Starts this object.- Returns:
- The promise of a started object or an exception if it has failed.
-
stop
Promise<Void,NeverThrowsException> stop()Stops this object.- Returns:
- The promise of a stopped object.
-