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 ReIndexJobPersister
public void saveOrUpdate(ReIndexJob reIndexJob)
ReIndexJobPersister
saveOrUpdate
in interface ReIndexJobPersister
reIndexJob
- re-index job to be saved/updatedpublic void clear()
ReIndexJobPersister
clear
in interface ReIndexJobPersister
Copyright © 2003–2021 Atlassian. All rights reserved.