CismetConcurrency.getDefaultExecutor() or create your own ExecutorService
using a ThreadFactory created by an instance of CismetConcurrency.@Deprecated public final class CismetThreadPool extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NUMBER_OF_PROCESSORS
Deprecated.
|
| Constructor and Description |
|---|
CismetThreadPool()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
execute(Runnable command)
Deprecated.
it should not be allowed for a "general-purpose" pool to increase in size infinitely and thus may be
able to break an application just because of allowing to many threads to run concurrently.
|
static void |
executeSequentially(Runnable command)
Deprecated.
if there is a need for an execution queue it is not likely that it's focus has to be global.
Additionally it is better to think about the purpose of the sequential execution and then to narrow
it down to the tasks that are really dependent on each other (because that's the whole point of
sequential execution). Maybe other solutions for the issue may be even more suited and/or elegant,
too.
|
static void |
shutdown()
Deprecated.
shutdown immediately renders this global pool unusable. It can never be revived. Thus any call to
this operation is dangerous for any piece of code that depends on this implementation.
|
static List<Runnable> |
shutdownNow()
Deprecated.
shutdown immediately renders this global pool unusable. It can never be revived. Thus any call to
this operation is dangerous for any piece of code that depends on this implementation.
|
static Future<?> |
submit(Runnable command)
Deprecated.
it should not be allowed for a "general-purpose" pool to increase in size infinitely and thus may be
able to break an application just because of allowing to many threads to run concurrently.
|
public static void execute(Runnable command)
command - given runnablepublic static void executeSequentially(Runnable command)
command - given runnablepublic static Future<?> submit(Runnable command)
command - given runnablepublic static List<Runnable> shutdownNow()
public static void shutdown()
Copyright © 2012–2026 cismet GmbH. All rights reserved.