Class WorkUnit

  • public final class WorkUnit
    extends Object
    Represents a unit of hand-over to Executor from Queue.
    Kohsuke Kawaguchi
    • Method Detail

      • setExecutor

        public void setExecutor​(@CheckForNull
                                Executor e)
      • getExecutable

        public Queue.Executable getExecutable()
        If the execution has already started, return the executable that was created.
      • setExecutable

        public void setExecutable​(Queue.Executable executable)
        This method is only meant to be called internally by Executor.
      • isMainWork

        public boolean isMainWork()
        Is this work unit the "main work", which is the primary SubTask represented by Queue.Task itself.