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 | Class and Description |
|---|---|
(package private) class |
JZtxtcmdThreadQueue.SubArg |
| 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<JZtxtcmdThreadQueue.SubArg> |
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 jzTcExec)
It is invoked from GralActionJztc if used with GUI.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(JZtxtcmdScript.Subroutine sub,
java.util.List<DataAccess.Variable<java.lang.Object>> args)
Add a subroutine to the queue.
|
void |
run()
Only internally as thread run.
|
public static final java.lang.String version
org.vishia.gral.cfg.GuiCfg in srcJava_vishiaGui component.
java.util.concurrent.ConcurrentLinkedQueue<JZtxtcmdThreadQueue.SubArg> queue
private JZtxtcmdExecuter.ExecuteLevel executeLevel
boolean bRun
public JZtxtcmdThreadQueue(java.lang.String name,
JZtxtcmdExecuter jzTcExec)
name - of the threadjzTc - to build an execute level.public void add(JZtxtcmdScript.Subroutine sub, java.util.List<DataAccess.Variable<java.lang.Object>> args)
sub - The sub routine from the JZtxtcmdScriptactual - named arguments, can be null.public void run()
run in interface java.lang.RunnableRunnable.run()