Package org.mcpjava.server
Interface Cancellation.Result
- Enclosing interface:
Cancellation
public static interface Cancellation.Result
Result of a cancellation check.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether the client wants to cancel an in-progress requestreason()Gets the cancellation reason
-
Method Details
-
isRequested
boolean isRequested()Gets whether the client wants to cancel an in-progress request- Returns:
trueif a client wants to cancel an in-progress request,falseotherwise
-
reason
Gets the cancellation reason- Returns:
- an optional reason for cancellation
-