[FINERACT-1941] change task executors to threadpool task executor
This commit is contained in:
+12
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user