diff options
Diffstat (limited to 'plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/concurrent/ThreadPool.java')
-rw-r--r-- | plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/concurrent/ThreadPool.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/concurrent/ThreadPool.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/concurrent/ThreadPool.java index eb3ca7cb47..b1749cea18 100644 --- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/concurrent/ThreadPool.java +++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/concurrent/ThreadPool.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2019, 2020 Eike Stepper (Loehne, Germany) and others. + * Copyright (c) 2015, 2019, 2020, 2022 Eike Stepper (Loehne, Germany) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -61,9 +61,9 @@ public class ThreadPool extends ThreadPoolExecutor implements RejectedExecutionH private RejectedExecutionHandler userHandler; - public ThreadPool(int corePoolSize, int maximumPoolSize, long keepAliveTime, ThreadFactory threadFactory) + public ThreadPool(int corePoolSize, int maximumPoolSize, long keepAliveSeconds, ThreadFactory threadFactory) { - super(corePoolSize, maximumPoolSize, keepAliveTime, TimeUnit.SECONDS, createWorkQueue(), threadFactory); + super(corePoolSize, maximumPoolSize, keepAliveSeconds, TimeUnit.SECONDS, createWorkQueue(), threadFactory); ((WorkQueue)getQueue()).setThreadPool(this); // Call super setter because the setter in this class is overridden to set the userHandler field. @@ -269,7 +269,7 @@ public class ThreadPool extends ThreadPoolExecutor implements RejectedExecutionH threadGroupName = DEFAULT_THREAD_GROUP_NAME; } - final ThreadGroup threadGroup = new ThreadGroup(threadGroupName); + ThreadGroup threadGroup = new ThreadGroup(threadGroupName); ThreadFactory threadFactory = new ThreadFactory() { |