public abstract class IterativeRunner
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
IterativeRunner() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onInterrupt()
This method is invoked if an interrupt is detected.
|
protected void |
onStart()
This method is invoked before the first iteration step.
|
protected void |
onTerminate()
This method is invoked whenever the iteration is terminated.
|
void |
run() |
protected abstract boolean |
step()
This method is invoked once each iteration step.
|
public final void run()
run in interface java.lang.Runnableprotected abstract boolean step()
throws java.lang.InterruptedException
true if the iteration should proceed, false if it
should terminate.java.lang.InterruptedException - if the iteration was interrupted and should be terminated
using the interrupt shutdown procedureprotected void onInterrupt()
protected void onTerminate()
onInterrupt() will be invoked before
this method.protected void onStart()
Copyright © 2018. All Rights Reserved.