@PublicApi
public interface Context
Modifier and Type | Interface and Description |
---|---|
static class |
Context.Builder
A builder for constructing a background task
Context . |
static interface |
Context.Task
A Task is a unit of work.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfTasksToCompletion()
Returns number of tasks not started yet, after finishing which progress is complete.
|
void |
setName(String name)
Set the name of the current step.
|
Context.Task |
start(Object input)
Start a new sub-task.
|
void setName(String name)
name
- the nameContext.Task start(Object input)
finallyblock.
input
- the object of the task, can be used for tracking currently executing tasks.int getNumberOfTasksToCompletion()
Copyright © 2002-2015 Atlassian. All Rights Reserved.