|
Bees v0.5.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--bees.core.Coroutine | +--bees.core.ResponderCoroutine
A ResponderCoroutine is a Coroutine that automatically repeats state transitions to a StateResponder specified in the Constructor.
StateResponder
Fields inherited from class bees.core.Coroutine |
DEFAULT_TIMEOUT, INVALID_ID, STATE_ANY, STATE_COMPLETE, STATE_ERROR, STATE_ERROR_CAGED, STATE_ERROR_INTERNAL, STATE_ERROR_TIMEOUT, STATE_ERROR_USER, STATE_NEWBORN, STATE_USER |
Constructor Summary | |
ResponderCoroutine(StateResponder sr)
Construct a ResponderCoroutine with the given value. |
Method Summary | |
StateResponder |
getResponder()
|
protected void |
setState(int newState)
Set the state of the Coroutine and notify any waiting threads. |
java.lang.String |
toString()
|
Methods inherited from class bees.core.Coroutine |
cleanup, drop, finalize, getCoroutine, getID, getState, getThrowable, handle, setThrowable, waitForCompletion, waitForCompletion, waitForState, waitForState |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ResponderCoroutine(StateResponder sr)
sr
- The StateResponder to notify of state changes.Method Detail |
public StateResponder getResponder()
protected void setState(int newState)
Coroutine
setState
in class Coroutine
Coroutine.setState(int)
public java.lang.String toString()
toString
in class Coroutine
Object.toString()
|
Bees v0.5.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |