Class DelegatingLongRunningTask
- java.lang.Object
-
- com.atlassian.confluence.util.longrunning.DelegatingLongRunningTask
-
- All Implemented Interfaces:
com.atlassian.core.task.longrunning.LongRunningTask
,Runnable
- Direct Known Subclasses:
OpenTenantGateLongRunningTask
public abstract class DelegatingLongRunningTask extends Object implements com.atlassian.core.task.longrunning.LongRunningTask
- Since:
- 5.6
-
-
Field Summary
Fields Modifier and Type Field Description protected com.atlassian.core.task.longrunning.LongRunningTask
delegate
-
Constructor Summary
Constructors Modifier Constructor Description protected
DelegatingLongRunningTask(com.atlassian.core.task.longrunning.LongRunningTask delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCurrentStatus()
long
getElapsedTime()
long
getEstimatedTimeRemaining()
String
getName()
String
getNameKey()
int
getPercentageComplete()
String
getPrettyElapsedTime()
String
getPrettyTimeRemaining()
boolean
isComplete()
boolean
isSuccessful()
void
run()
-
-
-
Method Detail
-
getPercentageComplete
public int getPercentageComplete()
- Specified by:
getPercentageComplete
in interfacecom.atlassian.core.task.longrunning.LongRunningTask
-
getName
public String getName()
- Specified by:
getName
in interfacecom.atlassian.core.task.longrunning.LongRunningTask
-
getNameKey
public String getNameKey()
- Specified by:
getNameKey
in interfacecom.atlassian.core.task.longrunning.LongRunningTask
-
getCurrentStatus
public String getCurrentStatus()
- Specified by:
getCurrentStatus
in interfacecom.atlassian.core.task.longrunning.LongRunningTask
-
getElapsedTime
public long getElapsedTime()
- Specified by:
getElapsedTime
in interfacecom.atlassian.core.task.longrunning.LongRunningTask
-
getPrettyElapsedTime
public String getPrettyElapsedTime()
- Specified by:
getPrettyElapsedTime
in interfacecom.atlassian.core.task.longrunning.LongRunningTask
-
getEstimatedTimeRemaining
public long getEstimatedTimeRemaining()
- Specified by:
getEstimatedTimeRemaining
in interfacecom.atlassian.core.task.longrunning.LongRunningTask
-
getPrettyTimeRemaining
public String getPrettyTimeRemaining()
- Specified by:
getPrettyTimeRemaining
in interfacecom.atlassian.core.task.longrunning.LongRunningTask
-
isComplete
public boolean isComplete()
- Specified by:
isComplete
in interfacecom.atlassian.core.task.longrunning.LongRunningTask
-
isSuccessful
public boolean isSuccessful()
- Specified by:
isSuccessful
in interfacecom.atlassian.core.task.longrunning.LongRunningTask
-
-