public class JZtxtcmdThreadQueue extends JZtxtcmdThreadData implements java.lang.Runnable
CmdQueue
but only for sub routines with the stable Scriptlevel as base for execution.
It is similar working in JZtxtcmdThread
but it has a queue and waits for execution of new sub routines.
org.vishia.gral.ifc.GralActionJztc
to run sub routines of JZtxtcmd as action from widgets.Modifier and Type | Field and Description |
---|---|
(package private) boolean |
bRun |
private JZtxtcmdExecuter.ExecuteLevel |
executeLevel
Used for execution all queued subroutines.
|
(package private) java.util.concurrent.ConcurrentLinkedQueue<JZtxtcmdScript.Subroutine> |
queue |
static java.lang.String |
version
The version, history and license.
|
error, excColumn, exception, excLine, excSrcfile, excStatement
Constructor and Description |
---|
JZtxtcmdThreadQueue(java.lang.String name,
JZtxtcmdExecuter.JzTcMain jzTc)
It is invoked from GralActionJztc if used with GUI.
|
Modifier and Type | Method and Description |
---|---|
void |
add(JZtxtcmdScript.Subroutine sub)
Add a subroutine to the queue.
|
void |
run()
Only internally as thread run.
|
public static final java.lang.String version
java.util.concurrent.ConcurrentLinkedQueue<JZtxtcmdScript.Subroutine> queue
private JZtxtcmdExecuter.ExecuteLevel executeLevel
boolean bRun
public JZtxtcmdThreadQueue(java.lang.String name, JZtxtcmdExecuter.JzTcMain jzTc)
name
- of the threadjzTc
- to build an execute level.public void add(JZtxtcmdScript.Subroutine sub)
sub
- public void run()
run
in interface java.lang.Runnable
Runnable.run()