aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2017-06-11 01:20:34 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2017-06-11 12:24:12 +0200
commit18ae9bb57db46d7d8720394cf409d56cd4b750f7 (patch)
tree97e5365e7036049b2a9ff8fcf582521525fbd683 /org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java
parentb6f954ad426f91561b4aa09d7ba23652516e7b0a (diff)
downloadjgit-18ae9bb57db46d7d8720394cf409d56cd4b750f7.tar.gz
jgit-18ae9bb57db46d7d8720394cf409d56cd4b750f7.zip
Allow to use an external ExecutorService for background auto-gc
If set use the external executor, otherwise use JGit's own simple WorkQueue. Move WorkQueue to an internal package so we can reuse it without exposing it in the public API. Change-Id: I060d62ffd6692362a88b4bf13ee07b0dc857abe9 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java
index baa5286862..53e9fe3c53 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java
@@ -55,6 +55,7 @@ import java.util.concurrent.TimeUnit;
import org.eclipse.jgit.annotations.NonNull;
import org.eclipse.jgit.errors.RepositoryNotFoundException;
import org.eclipse.jgit.internal.storage.file.FileRepository;
+import org.eclipse.jgit.lib.internal.WorkQueue;
import org.eclipse.jgit.util.FS;
import org.eclipse.jgit.util.IO;
import org.eclipse.jgit.util.RawParseUtils;