Files
ffsaf-site/src/main/java/fr/titionfire/ffsaf/ws/ExecutorProducer.java
Thibaut Valentin 9624ff93f0
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m42s
fix: ws timeout
2026-01-02 22:33:11 +01:00

20 lines
492 B
Java

package fr.titionfire.ffsaf.ws;
import jakarta.enterprise.inject.Produces;
import jakarta.inject.Named;
import jakarta.inject.Singleton;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
@Singleton
public class ExecutorProducer {
@Produces
@Named("notify-executor")
public Executor produceNotifyExecutor() {
// Créez un pool de threads avec une taille fixe (par exemple, 10 threads)
return Executors.newFixedThreadPool(10);
}
}