Provide custom BackgroundExecutorWrapper to pass thread locals

(cherry picked from commit 336accf447)
This commit is contained in:
Noemi Szemenyei
2022-03-11 13:31:50 +01:00
parent 75662aac5c
commit 3c7555de36
8 changed files with 307 additions and 50 deletions
@@ -31,7 +31,7 @@ class DaemonExecutorServiceTest {
@Test
void submit_via_DefaultBackgroundExecutor() throws Exception {
DefaultBackgroundExecutor des = new DefaultBackgroundExecutor(1, 5, "junk");
DefaultBackgroundExecutor des = new DefaultBackgroundExecutor(1, 5, "junk", null);
long start = System.currentTimeMillis();
List<Future<?>> futures = new ArrayList<>();
for (int i = 0; i < count; i++) {