Class EarlyTerminationPolicy

    • Constructor Detail

      • EarlyTerminationPolicy

        public EarlyTerminationPolicy()
    • Method Detail

      • delayEvaluation

        public Integer delayEvaluation()
        Get the delayEvaluation property: Number of intervals by which to delay the first evaluation.
        Returns:
        the delayEvaluation value.
      • withDelayEvaluation

        public EarlyTerminationPolicy withDelayEvaluation​(Integer delayEvaluation)
        Set the delayEvaluation property: Number of intervals by which to delay the first evaluation.
        Parameters:
        delayEvaluation - the delayEvaluation value to set.
        Returns:
        the EarlyTerminationPolicy object itself.
      • evaluationInterval

        public Integer evaluationInterval()
        Get the evaluationInterval property: Interval (number of runs) between policy evaluations.
        Returns:
        the evaluationInterval value.
      • withEvaluationInterval

        public EarlyTerminationPolicy withEvaluationInterval​(Integer evaluationInterval)
        Set the evaluationInterval property: Interval (number of runs) between policy evaluations.
        Parameters:
        evaluationInterval - the evaluationInterval value to set.
        Returns:
        the EarlyTerminationPolicy object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.