public interface IExecutionFeature
Modifier and Type | Field and Description |
---|---|
static int |
STEP_PRIORITY_IMMEDIATE
Constant for first immediate step level.
|
static int |
STEP_PRIORITY_NOMRAL
Constant for first normal step level.
|
Modifier and Type | Method and Description |
---|---|
<T> IIntermediateResultListener<T> |
createResultListener(IIntermediateResultListener<T> listener)
Create a result listener that is executed on the
component thread.
|
<T> IResultListener<T> |
createResultListener(IResultListener<T> listener)
Create a result listener that is executed on the
component thread.
|
boolean |
isComponentThread()
Test if current thread is the component thread.
|
<T> ISubscriptionIntermediateFuture<T> |
repeatStep(long initialDelay,
long delay,
IComponentStep<T> step)
Repeats a ComponentStep periodically, until terminate() is called on result future or a failure occurs in a step.
|
<T> ISubscriptionIntermediateFuture<T> |
repeatStep(long initialDelay,
long delay,
IComponentStep<T> step,
boolean ignorefailures)
Repeats a ComponentStep periodically, until terminate() is called on result future.
|
<T> IFuture<T> |
scheduleStep(IComponentStep<T> step)
Execute a component step.
|
<T> IFuture<T> |
scheduleStep(int priority,
IComponentStep<T> step)
Execute a component step.
|
IFuture<java.lang.Void> |
waitForDelay(long delay)
Wait for some time.
|
IFuture<java.lang.Void> |
waitForDelay(long delay,
boolean realtime)
Wait for some time.
|
<T> IFuture<T> |
waitForDelay(long delay,
IComponentStep<T> step)
Wait for some time and execute a component step afterwards.
|
<T> IFuture<T> |
waitForDelay(long delay,
IComponentStep<T> step,
boolean realtime)
Wait for some time and execute a component step afterwards.
|
IFuture<java.lang.Void> |
waitForTick()
Wait for the next tick.
|
IFuture<java.lang.Void> |
waitForTick(IComponentStep<java.lang.Void> run)
Wait for the next tick.
|
static final int STEP_PRIORITY_NOMRAL
static final int STEP_PRIORITY_IMMEDIATE
<T> IFuture<T> scheduleStep(IComponentStep<T> step)
step
- The component step.<T> IFuture<T> scheduleStep(int priority, IComponentStep<T> step)
step
- The component step.priority
- The step priority.
The priority x>STEP_PRIORITY_IMMEDIATE being immediate steps,
i.e. all steps with prio x>=STEP_PRIORITY_IMMEDIATE are always executed (even when suspended).
Default steps get prio STEP_PRIORITY_NOMRAL (not immediate).<T> IFuture<T> waitForDelay(long delay, IComponentStep<T> step, boolean realtime)
<T> IFuture<T> waitForDelay(long delay, IComponentStep<T> step)
IFuture<java.lang.Void> waitForDelay(long delay, boolean realtime)
IFuture<java.lang.Void> waitForDelay(long delay)
IFuture<java.lang.Void> waitForTick(IComponentStep<java.lang.Void> run)
time
- The time.IFuture<java.lang.Void> waitForTick()
time
- The time.boolean isComponentThread()
<T> IResultListener<T> createResultListener(IResultListener<T> listener)
<T> IIntermediateResultListener<T> createResultListener(IIntermediateResultListener<T> listener)
<T> ISubscriptionIntermediateFuture<T> repeatStep(long initialDelay, long delay, IComponentStep<T> step)
initialDelay
- delay before first execution in millisecondsdelay
- delay between scheduled executions of the step in millisecondsstep
- The component step<T> ISubscriptionIntermediateFuture<T> repeatStep(long initialDelay, long delay, IComponentStep<T> step, boolean ignorefailures)
initialDelay
- delay before first execution in millisecondsdelay
- delay between scheduled executions of the step in millisecondsstep
- The component stepignorefailures
- Don't terminate repeating after a failed step.