Class BandanaReIndexJobPersister
- java.lang.Object
-
- com.atlassian.confluence.internal.index.status.BandanaReIndexJobPersister
-
- All Implemented Interfaces:
ReIndexJobPersister
public class BandanaReIndexJobPersister extends Object implements ReIndexJobPersister
A Bandana-poweredReIndexJobPersister
. Because there is no optimistic locking in Bandana DAO, users of thisReIndexJobPersister
must employ some sorts of protections against concurrent updates.- Since:
- 7.6.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
REINDEX_STATUS_KEY
-
Constructor Summary
Constructors Constructor Description BandanaReIndexJobPersister(com.atlassian.bandana.BandanaManager bandanaManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Delete most recent or running re-index job.Optional<ReIndexJob>
get()
void
saveOrUpdate(ReIndexJob reIndexJob)
Save a new or update a running re-index job-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.internal.index.status.ReIndexJobPersister
saveNewUniquely
-
-
-
-
Field Detail
-
REINDEX_STATUS_KEY
public static final String REINDEX_STATUS_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public Optional<ReIndexJob> get()
- Specified by:
get
in interfaceReIndexJobPersister
- Returns:
- most recent or running re-index job. Empty if there is neither.
-
saveOrUpdate
public void saveOrUpdate(ReIndexJob reIndexJob)
Description copied from interface:ReIndexJobPersister
Save a new or update a running re-index job- Specified by:
saveOrUpdate
in interfaceReIndexJobPersister
- Parameters:
reIndexJob
- re-index job to be saved/updated
-
clear
public void clear()
Description copied from interface:ReIndexJobPersister
Delete most recent or running re-index job. No-op if there is neither- Specified by:
clear
in interfaceReIndexJobPersister
-
-