diff options
author | Ulf Adams <ulfjack@google.com> | 2017-01-18 14:32:14 +0000 |
---|---|---|
committer | Vladimir Moskva <vladmos@google.com> | 2017-01-18 16:02:10 +0000 |
commit | cffde1bb3c8636cb070e9d8d9700a814cf004688 (patch) | |
tree | 53c3c1795541448494c5f3da4186bb09491d1293 | |
parent | 73e971cc7f90896feed6c83d56b4903e7dfe1198 (diff) |
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.
--
PiperOrigin-RevId: 144827566
MOS_MIGRATED_REVID=144827566
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/exec/ActionInputPrefetcher.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/exec/ActionInputPrefetcher.java b/src/main/java/com/google/devtools/build/lib/exec/ActionInputPrefetcher.java index 23c9c0cf6d..1178544fb0 100644 --- a/src/main/java/com/google/devtools/build/lib/exec/ActionInputPrefetcher.java +++ b/src/main/java/com/google/devtools/build/lib/exec/ActionInputPrefetcher.java @@ -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); } |