Class CallableCondition.ConditionEvaluationWrapper

    • Field Detail

      • matcher

        private final java.util.concurrent.Callable<java.lang.Boolean> matcher
    • Constructor Detail

      • ConditionEvaluationWrapper

        ConditionEvaluationWrapper​(java.util.concurrent.Callable<java.lang.Boolean> matcher,
                                   ConditionSettings settings,
                                   ConditionEvaluationHandler<java.lang.Object> conditionEvaluationHandler)
    • Method Detail

      • eval

        public ConditionEvaluationResult eval​(java.time.Duration pollInterval)
                                       throws java.lang.Exception
        Specified by:
        eval in interface ConditionEvaluator
        Parameters:
        pollInterval - The poll interval for the for this evaluation round
        Throws:
        java.lang.Exception
      • getMatchMessage

        private java.lang.String getMatchMessage​(java.util.concurrent.Callable<java.lang.Boolean> matcher,
                                                 java.lang.String conditionAlias)
      • getMismatchMessage

        private java.lang.String getMismatchMessage​(java.util.concurrent.Callable<java.lang.Boolean> matcher,
                                                    java.lang.String conditionAlias)
      • generateDescriptionPrefix

        private java.lang.String generateDescriptionPrefix​(java.util.concurrent.Callable<java.lang.Boolean> matcher,
                                                           java.lang.String conditionAlias)
      • generateMethodDescription

        private java.lang.String generateMethodDescription​(java.util.concurrent.Callable<java.lang.Boolean> matcher)