All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.jgit.runtime.WorkQueueSubstitution Maven / Gradle / Ivy

There is a newer version: 3.3.0
Show newest version
package io.quarkus.jgit.runtime;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledThreadPoolExecutor;

import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

@TargetClass(className = "org.eclipse.jgit.lib.internal.WorkQueue")
@Substitute
public 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