ExecutionFond creation

This commit is contained in:
ialbert 2023-05-26 13:01:19 +03:00
parent c425431f4f
commit 125c50beb8

View file

@ -23,16 +23,19 @@ public class ClearingService implements DisposableBean {
private final VerificationResultComponent verificationResultComponent;
private final Clearing clearing;
private final ExecutionDepositComponent executionDepositComponent;
private final ExecutionFondComponent executionFondComponent;
@Autowired
public ClearingService(SdfCreatorBySTLDPayment sdfCreator, PaymentUpdateBySdf04 paymentUpdater,
VerificationResultComponent verificationResultComponent, Clearing clearing,
ExecutionDepositComponent executionDepositComponent) {
ExecutionDepositComponent executionDepositComponent,
ExecutionFondComponent executionFondComponent) {
this.sdfCreator = sdfCreator;
this.paymentUpdater = paymentUpdater;
this.verificationResultComponent = verificationResultComponent;
this.executionDepositComponent = executionDepositComponent;
this.clearing = clearing;
this.executionFondComponent = executionFondComponent;
this.executor = Executors.newSingleThreadExecutor();
}
@ -101,6 +104,7 @@ public class ClearingService implements DisposableBean {
executor.execute(() -> {
try {
executionDepositComponent.processNewTS();
executionFondComponent.processNewTS();
} catch (Throwable e) {
log.error("{}", ExceptionUtils.getStackTrace(e));
}