Change the ActionInputPrefetcher API to bulk.
This interface is part of the module API, and this makes more sense than the
previous per-file API, IMO, and is more future proof, even if there's no
immediate benefit to the change.
MOS_MIGRATED_REVID=144827566
@@ -20,15 +20,15 @@ public interface ActionInputPrefetcher {
public static final ActionInputPrefetcher NONE =
new ActionInputPrefetcher() {
@Override
- public void prefetchFile(ActionInput input) {
+ public void prefetchFiles(Iterable<? extends ActionInput> input) {
// Do nothing.
}
};
/**
- * Initiates best-effort prefetching of the given input. This should not block.
+ * Initiates best-effort prefetching of all given inputs. This should not block.
*
- * <p>If the path is not under this prefetcher's control, the call should be a no-op.
+ * <p>For any path not under this prefetcher's control, the call should be a no-op.
*/
- void prefetchFile(ActionInput input);
+ void prefetchFiles(Iterable<? extends ActionInput> input);
}
