Package nzilbb.media
Class MediaThread
- java.lang.Object
-
- java.lang.Thread
-
- nzilbb.media.MediaThread
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description MediaThread()
Default constructor.MediaThread(Runnable target)
Constructor with target.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Execution
getExecution()
Getter forexecution
: The external process Execution object, if the thread was given one.Throwable
getLastError()
Getter forlastError
: Last error, if any.int
getPercentComplete()
Getter forpercentComplete
: Percent complete.MediaThread
setExecution(Execution newExecution)
Setter forexecution
: The external process Execution object, if the thread was given one.MediaThread
setLastError(Throwable newLastError)
Setter forlastError
: Last error, if any.MediaThread
setPercentComplete(int newPercentComplete)
Setter forpercentComplete
: Percent complete.-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
MediaThread
public MediaThread()
Default constructor.
-
MediaThread
public MediaThread(Runnable target)
Constructor with target.
-
-
Method Detail
-
getPercentComplete
public int getPercentComplete()
Getter forpercentComplete
: Percent complete.- Returns:
- Percent complete.
-
setPercentComplete
public MediaThread setPercentComplete(int newPercentComplete)
Setter forpercentComplete
: Percent complete.- Parameters:
newPercentComplete
- Percent complete.
-
getExecution
public Execution getExecution()
Getter forexecution
: The external process Execution object, if the thread was given one.- Returns:
- The external process Execution object, if the thread was given one.
-
setExecution
public MediaThread setExecution(Execution newExecution)
Setter forexecution
: The external process Execution object, if the thread was given one.- Parameters:
newExecution
- The external process Execution object, if the thread was given one.
-
getLastError
public Throwable getLastError()
Getter forlastError
: Last error, if any.- Returns:
- Last error, if any.
-
setLastError
public MediaThread setLastError(Throwable newLastError)
Setter forlastError
: Last error, if any.- Parameters:
newLastError
- Last error, if any.
-
-