public class SolverManagerConfig extends AbstractConfig<SolverManagerConfig>
Modifier and Type | Field and Description |
---|---|
static String |
PARALLEL_SOLVER_COUNT_AUTO |
protected String |
parallelSolverCount |
protected Class<? extends ThreadFactory> |
threadFactoryClass |
Constructor and Description |
---|
SolverManagerConfig() |
Modifier and Type | Method and Description |
---|---|
SolverManagerConfig |
copyConfig()
Typically implemented by constructing a new instance and calling
AbstractConfig.inherit(AbstractConfig) on it |
protected int |
getAvailableProcessors() |
String |
getParallelSolverCount() |
Class<? extends ThreadFactory> |
getThreadFactoryClass() |
SolverManagerConfig |
inherit(SolverManagerConfig inheritedConfig)
Inherits each property of the
inheritedConfig unless that property (or a semantic alternative)
is defined by this instance (which overwrites the inherited behaviour). |
Integer |
resolveParallelSolverCount() |
protected int |
resolveParallelSolverCountAutomatically(int availableProcessorCount) |
void |
setParallelSolverCount(String parallelSolverCount) |
void |
setThreadFactoryClass(Class<? extends ThreadFactory> threadFactoryClass) |
SolverManagerConfig |
withParallelSolverCount(String parallelSolverCount) |
SolverManagerConfig |
withThreadFactoryClass(Class<? extends ThreadFactory> threadFactoryClass) |
deduceEntityDescriptor, deduceVariableDescriptor, deduceVariableDescriptorList, toString
public static final String PARALLEL_SOLVER_COUNT_AUTO
protected String parallelSolverCount
protected Class<? extends ThreadFactory> threadFactoryClass
public String getParallelSolverCount()
public void setParallelSolverCount(String parallelSolverCount)
public Class<? extends ThreadFactory> getThreadFactoryClass()
public void setThreadFactoryClass(Class<? extends ThreadFactory> threadFactoryClass)
public SolverManagerConfig withParallelSolverCount(String parallelSolverCount)
public SolverManagerConfig withThreadFactoryClass(Class<? extends ThreadFactory> threadFactoryClass)
public Integer resolveParallelSolverCount()
protected int getAvailableProcessors()
protected int resolveParallelSolverCountAutomatically(int availableProcessorCount)
public SolverManagerConfig inherit(SolverManagerConfig inheritedConfig)
AbstractConfig
inheritedConfig
unless that property (or a semantic alternative)
is defined by this instance (which overwrites the inherited behaviour).
After the inheritance, if a property on this AbstractConfig
composition is replaced,
it should not affect the inherited composition instance.
inherit
in class AbstractConfig<SolverManagerConfig>
inheritedConfig
- never nullpublic SolverManagerConfig copyConfig()
AbstractConfig
AbstractConfig.inherit(AbstractConfig)
on itcopyConfig
in class AbstractConfig<SolverManagerConfig>
Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.