@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface Cancel
The annotated method handles the session/cancel JSON-RPC notification,
which is sent when a client wants to cancel an ongoing operation.
Note: This is a notification handler, not a request handler. The method should not return a response - it should perform cleanup and return void.
The method can have the following parameters (all optional):
CancelNotification - the cancel notification containing the sessionId@SessionId String - the session ID being cancelledThe method should return:
void - notifications do not have responsesExample usage:
{@code