public class BandanaReIndexJobPersister extends Object implements ReIndexJobPersister
ReIndexJobPersister. Because there is no optimistic locking in Bandana DAO,
users of this ReIndexJobPersister must employ some sorts of protections against concurrent updates.| Modifier and Type | Field and Description |
|---|---|
static String |
REINDEX_STATUS_KEY |
| Constructor and Description |
|---|
BandanaReIndexJobPersister(com.atlassian.bandana.BandanaManager bandanaManager) |
| Modifier and Type | Method and 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
|
public static final String REINDEX_STATUS_KEY
public BandanaReIndexJobPersister(com.atlassian.bandana.BandanaManager bandanaManager)
public Optional<ReIndexJob> get()
get in interface ReIndexJobPersisterpublic void saveOrUpdate(ReIndexJob reIndexJob)
ReIndexJobPersistersaveOrUpdate in interface ReIndexJobPersisterreIndexJob - re-index job to be saved/updatedpublic void clear()
ReIndexJobPersisterclear in interface ReIndexJobPersisterCopyright © 2003–2022 Atlassian. All rights reserved.