Package org.jppf.utils.concurrent
Interface ConcurrentUtils.ConditionFalseOnException
- All Superinterfaces:
ConcurrentUtils.Condition
- Enclosing class:
- ConcurrentUtils
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface ConcurrentUtils.ConditionFalseOnException
extends ConcurrentUtils.Condition
This interface handles exceptions raised by its
evaluate() method and returns false when it happens.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanevaluate()Evaluate this condition.booleanEvaluate an arbitrary condition.
-
Method Details
-
evaluate
default boolean evaluate()Description copied from interface:ConcurrentUtils.ConditionEvaluate this condition.- Specified by:
evaluatein interfaceConcurrentUtils.Condition- Returns:
trueif the condition is fulfilled,falseotherwise.
-
evaluateWithException
Evaluate an arbitrary condition.- Returns:
- true if the condition was met, false otherwise.
- Throws:
Exception- if any error occurs during the evaluation.
-