Interface StreamTaskCancellationContext
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Context on the
StreamTask for figuring out whether it has been cancelled.-
Method Summary
Modifier and TypeMethodDescriptionFactory for a context that always returnsfalsewhenisCancelled()is called.booleanFind out whether theStreamTaskthis context belongs to has been cancelled.
-
Method Details
-
alwaysRunning
Factory for a context that always returnsfalsewhenisCancelled()is called.- Returns:
- context
-
isCancelled
boolean isCancelled()Find out whether theStreamTaskthis context belongs to has been cancelled.- Returns:
- true if the
StreamTaskthe has been cancelled
-