io.quarkus.optaplanner.OptaPlannerRecorder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-optaplanner Show documentation
Show all versions of quarkus-optaplanner Show documentation
Constraint solving AI for employee rostering, vehicle routing, maintenance scheduling, school timetabling, etc
package io.quarkus.optaplanner;
import java.util.function.Supplier;
import org.optaplanner.core.config.solver.SolverConfig;
import org.optaplanner.core.config.solver.SolverManagerConfig;
import io.quarkus.runtime.annotations.Recorder;
@Recorder
public class OptaPlannerRecorder {
public Supplier solverConfigSupplier(final SolverConfig solverConfig) {
return new Supplier() {
@Override
public SolverConfig get() {
return solverConfig;
}
};
}
public Supplier solverManagerConfig(final SolverManagerConfig solverManagerConfig) {
return new Supplier() {
@Override
public SolverManagerConfig get() {
return solverManagerConfig;
}
};
}
}