Class OptaPlannerConfiguration


  • @UriParams
    public class OptaPlannerConfiguration
    extends Object
    • Constructor Detail

      • OptaPlannerConfiguration

        public OptaPlannerConfiguration()
    • Method Detail

      • getConfigFile

        public String getConfigFile()
      • setConfigFile

        public void setConfigFile​(String configFile)
        Specifies the location to the solver file. If useSolverManager=FALSE, Camel uses this file and create the Solver. If useSolverManager=TRUE and SolverManager is set in the header {OptaPlannerConstants.SOLVER_MANAGER} : this file is ignored by Camel + usage of SolverManager. SolverManager can be injected by DI in Quarkus or Spring.
      • getSolverId

        public String getSolverId()
      • setSolverId

        public void setSolverId​(String solverId)
        Specifies the solverId to user for the solver instance key
      • getThreadPoolSize

        public int getThreadPoolSize()
      • setThreadPoolSize

        public void setThreadPoolSize​(int threadPoolSize)
        Specifies the thread pool size to use when async is true
      • isAsync

        public boolean isAsync()
      • setAsync

        public void setAsync​(boolean async)
        Specifies to perform operations in async mode
      • getProblemId

        public Long getProblemId()
      • setProblemId

        public void setProblemId​(Long problemId)
        In case of using SolverManager : the problem id
        Parameters:
        problemId -
      • isUseSolverManager

        public boolean isUseSolverManager()
      • setUseSolverManager

        public void setUseSolverManager​(boolean useSolverManager)
        use SolverManager instead of XML file config. Use this mode on Quarkus app.
        Parameters:
        useSolverManager -