@StaplerAccessibleType public static interface Queue.Executable extends Runnable
Executor
.
Implementation must have executorCell.jelly
, which is
used to render the HTML that indicates this executable is executing.
Modifier and Type | Method and Description |
---|---|
default long |
getEstimatedDuration()
Estimate of how long will it take to execute this executable.
|
SubTask |
getParent()
Task from which this executable was created.
|
void |
run()
Called by
Executor to perform the task. |
String |
toString()
Used to render the HTML.
|
@NonNull SubTask getParent()
Since this method went through a signature change in 1.377, the invocation may results in
AbstractMethodError
.
Use Executables.getParentOf(Queue.Executable)
that avoids this.
void run() throws AsynchronousExecution
Executor
to perform the task.run
in interface Runnable
AsynchronousExecution
- if you would like to continue without consuming a threaddefault long getEstimatedDuration()
SubTask.getEstimatedDuration()
Copyright © 2004–2021. All rights reserved.