Interface TaskUtils.TaskCompletedPredicate

Enclosing class:
TaskUtils
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 TaskUtils.TaskCompletedPredicate
Predicate to check for whether the task is completed with the given message.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(de.iip_ecosphere.platform.support.TaskRegistry.TaskData task, StatusMessage msg)
    Returns whether the task is completed with the given message msg.
  • Method Details

    • test

      boolean test(de.iip_ecosphere.platform.support.TaskRegistry.TaskData task, StatusMessage msg)
      Returns whether the task is completed with the given message msg. Task id of task and msg are already matched and the same in this call.
      Parameters:
      task - the task to test for
      msg - the received message
      Returns:
      true if completed, false if still ongoing