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 Type
    Method
    Description
    default boolean
    Evaluate this condition.
    boolean
    Evaluate an arbitrary condition.
  • Method Details

    • evaluate

      default boolean evaluate()
      Description copied from interface: ConcurrentUtils.Condition
      Evaluate this condition.
      Specified by:
      evaluate in interface ConcurrentUtils.Condition
      Returns:
      true if the condition is fulfilled, false otherwise.
    • evaluateWithException

      boolean evaluateWithException() throws Exception
      Evaluate an arbitrary condition.
      Returns:
      true if the condition was met, false otherwise.
      Throws:
      Exception - if any error occurs during the evaluation.