public interface ManagedObject
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getFailure()
Returns the last known failure when the managed object attempted a transition, otherwise return null.
|
LifeCycleStatus |
getStatus()
Returns the current managed object status.
|
void |
managedDestroy()
Destroy the managed object, same as calling
demote(LifeCycleStatus.INITIALIZED). |
void |
managedStart()
Attempt to start the managed object, same as calling
promote(LifeCycleStatus.STARTED). |
LifeCycleStatus getStatus()
Throwable getFailure()
void managedStart()
throws IllegalStateException
promote(LifeCycleStatus.STARTED).IllegalStateException - when reentrency is detectedvoid managedDestroy()
throws IllegalStateException
demote(LifeCycleStatus.INITIALIZED).IllegalStateException - when reentrency is detectedCopyright © 2003-2016 GateIn. All Rights Reserved.