public abstract class BackgroundTaskManager extends Object
TaskManagerCommandScope
.Constructor and Description |
---|
BackgroundTaskManager() |
Modifier and Type | Method and Description |
---|---|
abstract TaskManagerCommandScope |
getNewScope(BuildId buildId,
boolean blocking)
Returns a new
TaskManagerCommandScope for a build on this manager. |
abstract void |
shutdown(long timeout,
TimeUnit units)
Shut down manager, waiting until given timeout for tasks to finish.
|
abstract void |
shutdownNow()
Shut down manager, without waiting for tasks to finish.
|
public abstract TaskManagerCommandScope getNewScope(BuildId buildId, boolean blocking)
TaskManagerCommandScope
for a build on this manager. The TaskManagerCommandScope
lives for the duration of the command such that it's TaskManagerCommandScope.close()
will trigger the tasks scheduled to be ran.buildId
- unique identifier BuildId
of a command that created a scopeblocking
- whether the current command should wait for tasks to finish on exitpublic abstract void shutdownNow()
public abstract void shutdown(long timeout, TimeUnit units) throws InterruptedException
timeout
- timeout for tasks to finishunits
- units of timeoutInterruptedException