[FINERACT-1941] change task executors to threadpool task executor

This commit is contained in:
taskain7
2023-06-14 15:06:29 +02:00
committed by Adam Saghy
parent 6f677a3dd1
commit 78d9a0201e
15 changed files with 184 additions and 77 deletions
@@ -46,6 +46,8 @@ public class FineractProperties {
private FineractEventsProperties events;
private FineractTaskExecutor taskExecutor;
private FineractContentProperties content;
private FineractReportProperties report;
@@ -190,6 +192,14 @@ public class FineractProperties {
private FineractExternalEventsProperties external;
}
@Getter
@Setter
public static class FineractTaskExecutor {
private int defaultTaskExecutorCorePoolSize;
private int defaultTaskExecutorMaxPoolSize;
}
@Getter
@Setter
public static class FineractExternalEventsProperties {
@@ -217,6 +227,8 @@ public class FineractProperties {
private String brokerPassword;
private int producerCount;
private boolean asyncSendEnabled;
private int threadPoolTaskExecutorCorePoolSize;
private int threadPoolTaskExecutorMaxPoolSize;
public boolean isBrokerPasswordProtected() {
return StringUtils.isNotBlank(brokerUsername) || StringUtils.isNotBlank(brokerPassword);