Class OptaPlannerConfiguration
- java.lang.Object
-
- org.apache.camel.component.optaplanner.OptaPlannerConfiguration
-
@UriParams public class OptaPlannerConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description OptaPlannerConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConfigFile()
Long
getProblemId()
String
getSolverId()
int
getThreadPoolSize()
boolean
isAsync()
boolean
isUseSolverManager()
void
setAsync(boolean async)
Specifies to perform operations in async modevoid
setConfigFile(String configFile)
Specifies the location to the solver file.void
setProblemId(Long problemId)
In case of using SolverManager : the problem idvoid
setSolverId(String solverId)
Specifies the solverId to user for the solver instance keyvoid
setThreadPoolSize(int threadPoolSize)
Specifies the thread pool size to use when async is truevoid
setUseSolverManager(boolean useSolverManager)
use SolverManager instead of XML file config.
-
-
-
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
-
-
-