repositoryPath,
new LocalFileLockProvider<Path>(new File(temporary, PATH_LOCK_DIRECTORY)),
new ConstantRetryStrategy(retryCount, retryInterval));
ExecutorService executor = Executors.newFixedThreadPool(threads, DAEMON_THREAD_FACTORY);
try {
BatchFileCacheRepository repo = new ConcurrentBatchFileCacheRepository(unit, executor);
return repo.resolve(libraryPaths);
} finally {
executor.shutdownNow();
}
} else {
return new NullBatchFileCacheRepository().resolve(libraryPaths);