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

io.smallrye.faulttolerance.AsyncExecutorProvider Maven / Gradle / Ivy

There is a newer version: 6.4.0
Show newest version
package io.smallrye.faulttolerance;

import java.util.concurrent.ExecutorService;

/**
 * Integrators should provide a CDI bean which implements {@link AsyncExecutorProvider}. The bean should be
 * {@code @Singleton}, must be marked as alternative and selected globally for the application.
 */
public interface AsyncExecutorProvider {
    /**
     * Provides the thread pool for executing {@code @Asynchronous} methods and other asynchronous tasks.
     * Integrator is responsible for the thread pool's lifecycle.
     */
    ExecutorService get();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy