File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
src/main/java/com/iexec/worker/utils Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2020 IEXEC BLOCKCHAIN TECH
2+ * Copyright 2020-2023 IEXEC BLOCKCHAIN TECH
33*
44* Licensed under the Apache License, Version 2.0 (the "License");
55* you may not use this file except in compliance with the License.
1616
1717package com .iexec .worker .utils ;
1818
19+ import lombok .AccessLevel ;
20+ import lombok .NoArgsConstructor ;
1921import lombok .extern .slf4j .Slf4j ;
2022
2123import java .util .concurrent .CompletableFuture ;
2224import java .util .concurrent .Executor ;
2325
2426@ Slf4j
27+ @ NoArgsConstructor (access = AccessLevel .PRIVATE )
2528public class AsyncUtils {
2629
27- private AsyncUtils () {}
28-
2930 /**
3031 * The default {@link CompletableFuture#runAsync(Runnable)} fails silently when an exception
3132 * is thrown in the running thread. This wrapper method adds an exception handler that logs
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2020 IEXEC BLOCKCHAIN TECH
2+ * Copyright 2020-2023 IEXEC BLOCKCHAIN TECH
33*
44* Licensed under the Apache License, Version 2.0 (the "License");
55* you may not use this file except in compliance with the License.
1616
1717package com .iexec .worker .utils ;
1818
19+ import lombok .AccessLevel ;
20+ import lombok .NoArgsConstructor ;
1921import org .springframework .scheduling .concurrent .ThreadPoolTaskExecutor ;
2022
2123import java .util .concurrent .Executor ;
2224import java .util .concurrent .ThreadPoolExecutor .DiscardPolicy ;
2325
26+ @ NoArgsConstructor (access = AccessLevel .PRIVATE )
2427public class ExecutorUtils {
2528
26- private ExecutorUtils () {}
27-
2829 public static Executor
2930 newSingleThreadExecutorWithFixedSizeQueue (int queueSize , String threadNamePrefix ) {
3031 ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor ();
You can’t perform that action at this time.
0 commit comments