Package com.vaadin.signals.operations
Class CancelableOperation<T>
java.lang.Object
com.vaadin.signals.operations.SignalOperation<T>
com.vaadin.signals.operations.CancelableOperation<T>
- Type Parameters:
T- the result type
An operation that can be cancelled.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.signals.operations.SignalOperation
SignalOperation.Error<T>, SignalOperation.Result<T>, SignalOperation.ResultOrError<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels this operation.booleanChecks whether this operation has been canceled.Methods inherited from class com.vaadin.signals.operations.SignalOperation
result
-
Constructor Details
-
CancelableOperation
public CancelableOperation()Creates a new cancelable operation.
-
-
Method Details
-
cancel
public void cancel()Cancels this operation. Note that there's still a possibility that the operation will be successfully resolved rather than canceled if resolution and cancel happen concurrently. -
isCancelled
public boolean isCancelled()Checks whether this operation has been canceled.- Returns:
trueif the operation is canceled
-