Interface Lifecycle
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
Deployment,DeploymentContainer
Implemented by objects with an unmanaged lifecycle.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Stops this object, if started.static Lifecyclecomposite(Collection<? extends Lifecycle> lifecycles) Returns a composite lifecycle object, useful for performing bulk lifecycle operations.booleanIndicates whether this object is started.voidstart()Starts this object.voidstop()Stops this object.
-
Method Details
-
start
void start()Starts this object. -
stop
void stop()Stops this object. -
isStarted
boolean isStarted()Indicates whether this object is started.- Returns:
- true, if this object is started, false otherwise.
-
close
-
composite
Returns a composite lifecycle object, useful for performing bulk lifecycle operations.- Parameters:
lifecycles- a collection of lifecycle objects- Returns:
- a composite lifecycle
-