We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.signals.operations.
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 TypeMethodDescriptionvoid
cancel()
Cancels this operation.
boolean
Checks whether this operation has been canceled.
Methods inherited from class com.vaadin.signals.operations.SignalOperation
result
-
Constructor Details
-
CancelableOperation
public CancelableOperation()
-
-
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:
true
if the operation is canceled
-