io.quarkus.jgit.runtime.graalvm.WorkQueueSubstitution Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-jgit Show documentation
Show all versions of quarkus-jgit Show documentation
Access your Git repositories
package io.quarkus.jgit.runtime.graalvm;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import org.eclipse.jgit.lib.internal.WorkQueue;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;
@TargetClass(WorkQueue.class)
@Substitute
final class WorkQueueSubstitution {
private static final ScheduledThreadPoolExecutor executor = (ScheduledThreadPoolExecutor) Executors
.newScheduledThreadPool(1);
@Substitute
public static ScheduledThreadPoolExecutor getExecutor() {
return executor;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy