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.
Predicate to check for whether the task is completed with the given message.
- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptionbooleantest(de.iip_ecosphere.platform.support.TaskRegistry.TaskData task, StatusMessage msg) Returns whether thetaskis completed with the given messagemsg.
-
Method Details
-
test
Returns whether thetaskis completed with the given messagemsg. Task id oftaskandmsgare already matched and the same in this call.- Parameters:
task- the task to test formsg- the received message- Returns:
trueif completed,falseif still ongoing
-