use of fr.insee.sugoi.app.service.utils.QueuedDaemonThreadPool in project sugoi-api by InseeFr.
the class WebhookReceiverService method startServer.
public static boolean startServer() {
WireMockServer webhookServer = new WireMockServer(WireMockConfiguration.wireMockConfig().port(8089).notifier(new Slf4jNotifier(true)).threadPoolFactory(new ThreadPoolFactory() {
@Override
public ThreadPool buildThreadPool(Options options) {
ThreadPool tp = new QueuedDaemonThreadPool(options.containerThreads());
return tp;
}
}));
webhookServer.start();
webhookServer.stubFor(post("/spoc/send").willReturn(aResponse().withStatus(200)));
return true;
}
Aggregations