Interface Cancellation.Result

Enclosing interface:
Cancellation

public static interface Cancellation.Result
Result of a cancellation check.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Gets whether the client wants to cancel an in-progress request
    Gets the cancellation reason
  • Method Details

    • isRequested

      boolean isRequested()
      Gets whether the client wants to cancel an in-progress request
      Returns:
      true if a client wants to cancel an in-progress request, false otherwise
    • reason

      Optional<String> reason()
      Gets the cancellation reason
      Returns:
      an optional reason for cancellation