@FunctionalInterface @Internal public interface StreamTaskCancellationContext
StreamTask for figuring out whether it has been cancelled.| Modifier and Type | Method and Description |
|---|---|
static StreamTaskCancellationContext |
alwaysRunning()
Factory for a context that always returns
false when isCancelled() is
called. |
boolean |
isCancelled()
Find out whether the
StreamTask this context belongs to has been cancelled. |
static StreamTaskCancellationContext alwaysRunning()
false when isCancelled() is
called.boolean isCancelled()
StreamTask this context belongs to has been cancelled.StreamTask the has been cancelledCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.