Class 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 Detail

      • delegate

        protected final com.atlassian.core.task.longrunning.LongRunningTask delegate
    • Constructor Detail

      • DelegatingLongRunningTask

        protected DelegatingLongRunningTask​(com.atlassian.core.task.longrunning.LongRunningTask delegate)
    • Method Detail

      • getPercentageComplete

        public int getPercentageComplete()
        Specified by:
        getPercentageComplete in interface com.atlassian.core.task.longrunning.LongRunningTask
      • getName

        public String getName()
        Specified by:
        getName in interface com.atlassian.core.task.longrunning.LongRunningTask
      • getNameKey

        public String getNameKey()
        Specified by:
        getNameKey in interface com.atlassian.core.task.longrunning.LongRunningTask
      • getCurrentStatus

        public String getCurrentStatus()
        Specified by:
        getCurrentStatus in interface com.atlassian.core.task.longrunning.LongRunningTask
      • getElapsedTime

        public long getElapsedTime()
        Specified by:
        getElapsedTime in interface com.atlassian.core.task.longrunning.LongRunningTask
      • getPrettyElapsedTime

        public String getPrettyElapsedTime()
        Specified by:
        getPrettyElapsedTime in interface com.atlassian.core.task.longrunning.LongRunningTask
      • getEstimatedTimeRemaining

        public long getEstimatedTimeRemaining()
        Specified by:
        getEstimatedTimeRemaining in interface com.atlassian.core.task.longrunning.LongRunningTask
      • getPrettyTimeRemaining

        public String getPrettyTimeRemaining()
        Specified by:
        getPrettyTimeRemaining in interface com.atlassian.core.task.longrunning.LongRunningTask
      • isComplete

        public boolean isComplete()
        Specified by:
        isComplete in interface com.atlassian.core.task.longrunning.LongRunningTask
      • isSuccessful

        public boolean isSuccessful()
        Specified by:
        isSuccessful in interface com.atlassian.core.task.longrunning.LongRunningTask
      • run

        public void run()
        Specified by:
        run in interface Runnable