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

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

There is a newer version: 3.3.3
Show newest version
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