public static final class ScriptManager.ScriptThread extends Thread
Thread
subclass that manages the execution of a Groovy script.
A common use for this class is using it to get the current thread's
Script
or the path to the script file.Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier and Type | Method and Description |
---|---|
File |
getPath()
The path to the .groovy script file running in this thread
|
groovy.lang.Script |
getScript()
The
Script running in this thread |
void |
run()
Run the thread.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public File getPath()
public groovy.lang.Script getScript()
Script
running in this threadScript
running in this threadScript
public void run()
Thread.run()
that
runs closers at the end. See GroovyLocals.registerCloser(java.lang.Runnable)
for a description on what closers are.Copyright © 2024. All rights reserved.