Interface UpdateScheduler
-
- All Known Implementing Classes:
QuickStatementsUpdateScheduler,WikibaseAPIUpdateScheduler
public interface UpdateSchedulerA scheduling strategy for entity updates. Given a list of initial updates, the scheduler reorganizes these updates (possibly splitting them or merging them) to create a sequence that is suitable for a particular import process.- Author:
- Antonin Delpeuch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<EntityEdit>schedule(List<EntityEdit> updates)Performs the scheduling.
-
-
-
Method Detail
-
schedule
List<EntityEdit> schedule(List<EntityEdit> updates) throws ImpossibleSchedulingException
Performs the scheduling. The initial updates are provided as a list so that the scheduler can attempt to respect the initial order (but no guarantee is made for that in general).- Parameters:
updates- the updates to schedule- Returns:
- the reorganized updates
- Throws:
ImpossibleSchedulingException- when the scheduler cannot cope with a particular edit plan.
-
-