Package io.micronaut.scheduling.executor
Interface ExecutorConfiguration
- All Known Implementing Classes:
 UserExecutorConfiguration
public interface ExecutorConfiguration
- Since:
 - 1.0
 - Author:
 - Graeme Rocher
 
- 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptiongetName()Optional<Class<? extends ThreadFactory>>getType()boolean 
- 
Field Details
- 
PREFIX
The prefix used for configuration.- See Also:
 
 - 
PREFIX_IO
The prefix used for I/O pool configuration.- See Also:
 
 - 
PREFIX_SCHEDULED
The prefix used for Scheduled task configuration.- See Also:
 
 - 
PREFIX_CONSUMER
The prefix used for Scheduled task configuration.- See Also:
 
 
 - 
 - 
Method Details
- 
getName
- Returns:
 - The name of the component
 
 - 
getType
ExecutorType getType()- Returns:
 - The 
ExecutorType 
 - 
getParallelism
- Returns:
 - The parallelism for 
ExecutorType.WORK_STEALING 
 - 
getNumberOfThreads
- Returns:
 - The number of threads for 
ExecutorType.FIXED 
 - 
getCorePoolSize
- Returns:
 - The core pool size for 
ExecutorType.SCHEDULED 
 - 
isVirtual
boolean isVirtual()- Returns:
 - Whether the pool should use virtual threads.
 
 - 
getThreadFactoryClass
Optional<Class<? extends ThreadFactory>> getThreadFactoryClass()- Returns:
 - The class to use as the 
ThreadFactory 
 
 -