Class BackgroundJobDAO
java.lang.Object
com.atlassian.confluence.impl.backgroundjob.dao.BackgroundJobDAO
DAO for background job records.
- Since:
- 8.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(BackgroundJob job) Physically removes a records from the DB.findActiveJobsByType
(String type) Returns all active jobs with the particular type.getActiveJobById
(long id) Find an active record by id.Returns all active jobs with "runAt" field older or equal to "now".getArchivedJobById
(long id) Find an archived record by id.getObsoleteArchivedJobs
(Instant date, int limit) Returns all non-active records that haven't been touched since "date".void
remove
(BackgroundJob job) Physically removes a records from the DB.void
void
save
(BackgroundJob job) void
-
Constructor Details
-
BackgroundJobDAO
public BackgroundJobDAO(org.hibernate.SessionFactory sessionFactory)
-
-
Method Details
-
save
-
saveArchived
-
delete
Physically removes a records from the DB. -
getAllJobsReadyToRunSortedById
Returns all active jobs with "runAt" field older or equal to "now". -
findActiveJobsByType
Returns all active jobs with the particular type. -
remove
Physically removes a records from the DB. -
removeArchivedJob
-
getObsoleteArchivedJobs
Returns all non-active records that haven't been touched since "date". -
getActiveJobById
Find an active record by id. -
getArchivedJobById
Find an archived record by id.
-