Annotation Interface Cancellable
Used on a method that returns a single item async return type (such as
Uni or or Kotlin
suspend function)
to control whether to cancel the subscription to the result if the connection is closed before the result is ready.
By default, Quarkus will cancel the subscription.
Can also be placed on a ContainerResponseFilter class with value = false
to ensure the filter is still executed even when the client closes the connection before the response is completed.
Only filters explicitly marked as non-cancellable will run; other response filters are still skipped.
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
boolean value- Default:
true
-