Class CancelableOperation<T>

java.lang.Object
com.vaadin.signals.operations.SignalOperation<T>
com.vaadin.signals.operations.CancelableOperation<T>
Type Parameters:
T - the result type

public class CancelableOperation<T> extends SignalOperation<T>
An operation that can be cancelled.
  • 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