Class RunnableBase
- java.lang.Object
-
- org.kie.server.services.taskassigning.planning.RunnableBase
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
SolutionProcessor,SolutionSynchronizer,SolverExecutor
public abstract class RunnableBase extends Object implements Runnable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classRunnableBase.Status
-
Field Summary
Fields Modifier and Type Field Description protected AtomicReference<RunnableBase.Status>status
-
Constructor Summary
Constructors Constructor Description RunnableBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()protected booleanisAlive()The semantic of RunnableBase class is it that can't continue "executing" as soon the destroy() method was invoked or the backing thread was interrupted.booleanisDestroyed()
-
-
-
Field Detail
-
status
protected final AtomicReference<RunnableBase.Status> status
-
-
Method Detail
-
destroy
public void destroy()
-
isDestroyed
public boolean isDestroyed()
- Returns:
- true if the destroy() method has been called. False in any other case.
-
isAlive
protected boolean isAlive()
The semantic of RunnableBase class is it that can't continue "executing" as soon the destroy() method was invoked or the backing thread was interrupted.- Returns:
- true if current RunnableBase can continue executing, false in any other case.
-
-