Class SolverManagerConfig

java.lang.Object
org.optaplanner.core.config.AbstractConfig<SolverManagerConfig>
org.optaplanner.core.config.solver.SolverManagerConfig

public class SolverManagerConfig extends AbstractConfig<SolverManagerConfig>
  • Field Details

    • PARALLEL_SOLVER_COUNT_AUTO

      public static final String PARALLEL_SOLVER_COUNT_AUTO
      See Also:
    • parallelSolverCount

      protected String parallelSolverCount
    • threadFactoryClass

      protected Class<? extends ThreadFactory> threadFactoryClass
  • Constructor Details

    • SolverManagerConfig

      public SolverManagerConfig()
  • Method Details

    • getParallelSolverCount

      public String getParallelSolverCount()
    • setParallelSolverCount

      public void setParallelSolverCount(String parallelSolverCount)
    • getThreadFactoryClass

      public Class<? extends ThreadFactory> getThreadFactoryClass()
    • setThreadFactoryClass

      public void setThreadFactoryClass(Class<? extends ThreadFactory> threadFactoryClass)
    • withParallelSolverCount

      public SolverManagerConfig withParallelSolverCount(String parallelSolverCount)
    • withThreadFactoryClass

      public SolverManagerConfig withThreadFactoryClass(Class<? extends ThreadFactory> threadFactoryClass)
    • resolveParallelSolverCount

      public Integer resolveParallelSolverCount()
    • getAvailableProcessors

      protected int getAvailableProcessors()
    • resolveParallelSolverCountAutomatically

      protected int resolveParallelSolverCountAutomatically(int availableProcessorCount)
    • inherit

      public SolverManagerConfig inherit(SolverManagerConfig inheritedConfig)
      Description copied from class: AbstractConfig
      Inherits each property of the 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.

      Specified by:
      inherit in class AbstractConfig<SolverManagerConfig>
      Parameters:
      inheritedConfig - never null
      Returns:
      this
    • copyConfig

      public SolverManagerConfig copyConfig()
      Description copied from class: AbstractConfig
      Typically implemented by constructing a new instance and calling AbstractConfig.inherit(AbstractConfig) on it.
      Specified by:
      copyConfig in class AbstractConfig<SolverManagerConfig>
      Returns:
      new instance
    • visitReferencedClasses

      public void visitReferencedClasses(Consumer<Class<?>> classVisitor)
      Description copied from class: AbstractConfig
      Call 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:
      visitReferencedClasses in class AbstractConfig<SolverManagerConfig>
      Parameters:
      classVisitor - The visitor of classes, never null. Can accept null instances of Class.