Interface ReIndexJobPersister
-
- All Known Implementing Classes:
BandanaReIndexJobPersister
public interface ReIndexJobPersister
Store/retrieveReIndexJob
. There is at most one job to be stored at any time.- Since:
- 7.6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
clear()
Delete most recent or running re-index job.Optional<ReIndexJob>
get()
default boolean
saveNewUniquely(ReIndexJob reIndexJob)
Save a newReIndexJob
object to the bandana table if it does not existvoid
saveOrUpdate(ReIndexJob reIndexJob)
Save a new or update a running re-index job
-
-
-
Method Detail
-
get
Optional<ReIndexJob> get()
- Returns:
- most recent or running re-index job. Empty if there is neither.
-
saveOrUpdate
void saveOrUpdate(ReIndexJob reIndexJob)
Save a new or update a running re-index job- Parameters:
reIndexJob
- re-index job to be saved/updated
-
saveNewUniquely
default boolean saveNewUniquely(ReIndexJob reIndexJob)
Save a newReIndexJob
object 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
-
-