Interface ReIndexJobPersister
- All Known Implementing Classes:
BandanaReIndexJobPersister
public interface ReIndexJobPersister
Store/retrieve
ReIndexJob. There is at most one job to be stored at any time.- Since:
- 7.6.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Delete most recent or running re-index job.get()default booleansaveNewUniquely(ReIndexJob reIndexJob) Save a newReIndexJobobject to the bandana table if it does not existvoidsaveOrUpdate(ReIndexJob reIndexJob) Save a new or update a running re-index job
-
Method Details
-
get
Optional<ReIndexJob> get()- Returns:
- most recent or running re-index job. Empty if there is neither.
-
saveOrUpdate
Save a new or update a running re-index job- Parameters:
reIndexJob- re-index job to be saved/updated
-
saveNewUniquely
Save a newReIndexJobobject to the bandana table if it does not exist- Parameters:
reIndexJob- the new job- Returns:
- true if the new job can be saved, false otherwise
- Since:
- 8.3.0
-
clear
void clear()Delete most recent or running re-index job. No-op if there is neither
-