Class ExecutorUtils
java.lang.Object
org.eclipse.aether.util.concurrency.ExecutorUtils
Deprecated.
For removal. Nothing is using this class within Resolver.
Utilities for executors and sizing them.
- Since:
- 1.9.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Executor
Deprecated.Shared instance of "direct executor". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Executor
Deprecated.static void
Deprecated.To be used with result ofexecutor(int, String)
method, shuts down instance if it isExecutorService
.static int
threadCount
(org.eclipse.aether.RepositorySystemSession session, int defaultValue, String... keys) Deprecated.Retrieves and validates requested thread count based on session and specified keys, or if none provided, the provided default value.static ExecutorService
threadPool
(int poolSize, String namePrefix) Deprecated.Creates new thread poolExecutorService
.
-
Field Details
-
DIRECT_EXECUTOR
Deprecated.Shared instance of "direct executor".
-
-
Constructor Details
-
ExecutorUtils
public ExecutorUtils()Deprecated.
-
-
Method Details
-
threadPool
Deprecated.Creates new thread poolExecutorService
. ThepoolSize
parameter but be greater than 1. -
executor
Deprecated. -
shutdown
Deprecated.To be used with result ofexecutor(int, String)
method, shuts down instance if it isExecutorService
. -
threadCount
public static int threadCount(org.eclipse.aether.RepositorySystemSession session, int defaultValue, String... keys) Deprecated.Retrieves and validates requested thread count based on session and specified keys, or if none provided, the provided default value. This method validates result on top of whatConfigUtils
does.- Throws:
IllegalArgumentException
- if default value is less than 1.- See Also:
-