Class SolverManagerConfig
- java.lang.Object
- 
- org.optaplanner.core.config.AbstractConfig<SolverManagerConfig>
- 
- org.optaplanner.core.config.solver.SolverManagerConfig
 
 
- 
 public class SolverManagerConfig extends AbstractConfig<SolverManagerConfig> 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringPARALLEL_SOLVER_COUNT_AUTOprotected StringparallelSolverCountprotected Class<? extends ThreadFactory>threadFactoryClass
 - 
Constructor SummaryConstructors Constructor Description SolverManagerConfig()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SolverManagerConfigcopyConfig()Typically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)on itprotected intgetAvailableProcessors()StringgetParallelSolverCount()Class<? extends ThreadFactory>getThreadFactoryClass()SolverManagerConfiginherit(SolverManagerConfig inheritedConfig)Inherits each property of theinheritedConfigunless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).IntegerresolveParallelSolverCount()protected intresolveParallelSolverCountAutomatically(int availableProcessorCount)voidsetParallelSolverCount(String parallelSolverCount)voidsetThreadFactoryClass(Class<? extends ThreadFactory> threadFactoryClass)voidvisitReferencedClasses(Consumer<Class<?>> classVisitor)Call the class visitor on each (possibly null) Class instance provided to this config by the user (including those provided in child configs).SolverManagerConfigwithParallelSolverCount(String parallelSolverCount)SolverManagerConfigwithThreadFactoryClass(Class<? extends ThreadFactory> threadFactoryClass)- 
Methods inherited from class org.optaplanner.core.config.AbstractConfigtoString
 
- 
 
- 
- 
- 
Field Detail- 
PARALLEL_SOLVER_COUNT_AUTOpublic static final String PARALLEL_SOLVER_COUNT_AUTO - See Also:
- Constant Field Values
 
 - 
parallelSolverCountprotected String parallelSolverCount 
 - 
threadFactoryClassprotected Class<? extends ThreadFactory> threadFactoryClass 
 
- 
 - 
Method Detail- 
getParallelSolverCountpublic String getParallelSolverCount() 
 - 
setParallelSolverCountpublic void setParallelSolverCount(String parallelSolverCount) 
 - 
getThreadFactoryClasspublic Class<? extends ThreadFactory> getThreadFactoryClass() 
 - 
setThreadFactoryClasspublic void setThreadFactoryClass(Class<? extends ThreadFactory> threadFactoryClass) 
 - 
withParallelSolverCountpublic SolverManagerConfig withParallelSolverCount(String parallelSolverCount) 
 - 
withThreadFactoryClasspublic SolverManagerConfig withThreadFactoryClass(Class<? extends ThreadFactory> threadFactoryClass) 
 - 
resolveParallelSolverCountpublic Integer resolveParallelSolverCount() 
 - 
getAvailableProcessorsprotected int getAvailableProcessors() 
 - 
resolveParallelSolverCountAutomaticallyprotected int resolveParallelSolverCountAutomatically(int availableProcessorCount) 
 - 
inheritpublic SolverManagerConfig inherit(SolverManagerConfig inheritedConfig) Description copied from class:AbstractConfigInherits each property of theinheritedConfigunless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).After the inheritance, if a property on this AbstractConfigcomposition is replaced, it should not affect the inherited composition instance.- Specified by:
- inheritin class- AbstractConfig<SolverManagerConfig>
- Parameters:
- inheritedConfig- never null
- Returns:
- this
 
 - 
copyConfigpublic SolverManagerConfig copyConfig() Description copied from class:AbstractConfigTypically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)on it- Specified by:
- copyConfigin class- AbstractConfig<SolverManagerConfig>
- Returns:
- new instance
 
 - 
visitReferencedClassespublic void visitReferencedClasses(Consumer<Class<?>> classVisitor) Description copied from class:AbstractConfigCall the class visitor on each (possibly null) Class instance provided to this config by the user (including those provided in child configs). Required to create the bean factory in Quarkus.- Specified by:
- visitReferencedClassesin class- AbstractConfig<SolverManagerConfig>
- Parameters:
- classVisitor- The visitor of classes, never null. Can accept null instances of Class
 
 
- 
 
-