public final class Sequence
extends java.lang.Object
InterruptedException
the sequence is aborted. In any case the sequence is aborted as soon as the
step running while calling stop() terminates.| Constructor and Description |
|---|
Sequence(InterruptibleRunnable base)
Wrap an
InterruptibleRunnable into a sequence instance |
| Modifier and Type | Method and Description |
|---|---|
static IRootSequenceBuilder |
builder()
Creates a new sequence builder
|
void |
join()
Waits for the currently running instance of this sequence to terminate.
|
void |
start()
Starts the sequence.
|
void |
stop()
Stops the sequence.
|
public Sequence(InterruptibleRunnable base)
InterruptibleRunnable into a sequence instancepublic void start()
throws java.lang.InterruptedException
stop() and is
therefore blocking.java.lang.InterruptedException - if the calling thread is interrupted while waiting for the
previous instance of this sequence to terminate.stop()public void join()
throws java.lang.InterruptedException
java.lang.InterruptedException - if the calling thread is interrupted while waiting for the
running instance of this sequence to terminate.public void stop()
throws java.lang.InterruptedException
java.lang.InterruptedException - if the calling thread is interrupted while waiting for the
running instance of this sequence to terminate.public static IRootSequenceBuilder builder()
Copyright © 2018. All Rights Reserved.