Package org.optaplanner.core.impl.score.stream

## Interface ConstraintSessionFactory<Solution_,​Score_ extends Score<Score_>>

- All Known Implementing Classes:
    `BavetConstraintSessionFactory`, `DroolsConstraintSessionFactory`

      public interface ConstraintSessionFactory<Solution_,​Score_ extends Score<Score_>>

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `ConstraintSession<Solution_,​Score_>` | `buildSession​(boolean constraintMatchEnabled, Solution_ workingSolution)` | This method is thread-safe.

- - ### Method Detail

    - #### buildSession

          ConstraintSession<Solution_,​Score_> buildSession​(boolean constraintMatchEnabled,
                                                                 Solution_ workingSolution)

      This method is thread-safe.
      Parameters:
        `constraintMatchEnabled` - true if `InnerScoreDirector.isConstraintMatchEnabled()` should be true
        `workingSolution` - if null, uniform synthetic constraint weights will be applied
      Returns:
        never null