Class BackgroundJobResponse
- java.lang.Object
-
- com.atlassian.confluence.impl.backgroundjob.BackgroundJobResponse
-
public class BackgroundJobResponse extends Object
Information returned by a background service. Contains information about where the task should be marked as completed or not when the next execution time, what the new job parameters should be set.- Since:
- 8.1.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorMessage()Map<String,Object>getNewParameters()BackgroundJobStategetNewState()InstantgetNextRunAt()static BackgroundJobResponsemarkJobAsFinished()static BackgroundJobResponsescheduleNextRun(ChronoUnit unit, int duration, Map<String,Object> parameters)static BackgroundJobResponsescheduleNextRunNow(Map<String,Object> parameters)
-
-
-
Method Detail
-
scheduleNextRun
public static BackgroundJobResponse scheduleNextRun(ChronoUnit unit, int duration, Map<String,Object> parameters)
-
scheduleNextRunNow
public static BackgroundJobResponse scheduleNextRunNow(Map<String,Object> parameters)
-
markJobAsFinished
public static BackgroundJobResponse markJobAsFinished()
-
getNewState
public BackgroundJobState getNewState()
-
getNextRunAt
public Instant getNextRunAt()
-
getErrorMessage
public String getErrorMessage()
-
-