|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.prevayler.foundation.Turn
public class Turn
Used to control progression of threads through the stages of a processing pipeline.
| Method Summary | |
|---|---|
void |
abort(String message,
Throwable cause)
Abort the pipeline. |
void |
end()
End a stage in the pipeline. |
static Turn |
first()
The first turn through a pipeline, allowed to flow freely through all stages. |
Turn |
next()
The next turn through the pipeline, allowed to flow only as far as this turn has already gone. |
void |
start()
Start a stage in the pipeline. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Turn first()
public Turn next()
IllegalStateException - if this or any preceding turn has been aborted.public void start()
IllegalStateException - if this or any preceding turn has been aborted.public void end()
public void abort(String message,
Throwable cause)
IllegalStateException - always, with the given message and cause.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||