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 SummaryFieldsModifier and TypeFieldDescriptionstatic final ExecutorDeprecated.Shared instance of "direct executor".
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ExecutorDeprecated.static voidDeprecated.To be used with result ofexecutor(int, String)method, shuts down instance if it isExecutorService.static intthreadCount(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 ExecutorServicethreadPool(int poolSize, String namePrefix) Deprecated.Creates new thread poolExecutorService.
- 
Field Details- 
DIRECT_EXECUTORDeprecated.Shared instance of "direct executor".
 
- 
- 
Constructor Details- 
ExecutorUtilspublic ExecutorUtils()Deprecated.
 
- 
- 
Method Details- 
threadPoolDeprecated.Creates new thread poolExecutorService. ThepoolSizeparameter but be greater than 1.
- 
executorDeprecated.
- 
shutdownDeprecated.To be used with result ofexecutor(int, String)method, shuts down instance if it isExecutorService.
- 
threadCountpublic 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 whatConfigUtilsdoes.- Throws:
- IllegalArgumentException- if default value is less than 1
- See Also:
 
 
-