|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Lifecycle<S extends State<S>>
The lifecycle of an application managed as a gCube service.
| Method Summary | |
|---|---|
void |
moveTo(S state)
Transition this lifecycle to a given state. |
S |
previous()
Returns the state from which this lifecycle transitioned to its current state. |
S |
state()
Returns the current state of this lifecycle. |
boolean |
tryMoveTo(S state)
Attempts to transition this lifecycle to a given state, but does not fail if the transition is illegal for this lifecycle. |
| Method Detail |
|---|
S previous()
S state()
void moveTo(S state)
state - the state
IllegalStateException - if the transition is illegal for this lifecycleboolean tryMoveTo(S state)
state - the state
true if this lifecycle has transitioned to the given state
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||