Package nzilbb.media

Class MediaThread

  • All Implemented Interfaces:
    Runnable

    public class MediaThread
    extends Thread
    Thread processing media.
    Author:
    Robert Fromont robert@fromont.net.nz
    • Constructor Detail

      • MediaThread

        public MediaThread()
        Default constructor.
      • MediaThread

        public MediaThread​(Runnable target)
        Constructor with target.
    • Method Detail

      • getPercentComplete

        public int getPercentComplete()
        Getter for percentComplete: Percent complete.
        Returns:
        Percent complete.
      • setPercentComplete

        public MediaThread setPercentComplete​(int newPercentComplete)
        Setter for percentComplete: Percent complete.
        Parameters:
        newPercentComplete - Percent complete.
      • getExecution

        public Execution getExecution()
        Getter for execution: 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 for execution: 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 for lastError: Last error, if any.
        Returns:
        Last error, if any.
      • setLastError

        public MediaThread setLastError​(Throwable newLastError)
        Setter for lastError: Last error, if any.
        Parameters:
        newLastError - Last error, if any.