Annotation Type Blocking


  • @Documented
    @Retention(CLASS)
    @Target({METHOD,CONSTRUCTOR,TYPE})
    public @interface Blocking
    Indicates that the annotated method is inherently blocking and should not be executed in a non-blocking context.

    When this annotation is used on a class, all the methods declared by the annotated class are considered blocking.

    Apart from documentation purposes this annotation is intended to be used by static analysis tools to validate against probable runtime errors and element contract violations.

    Since:
    22.0.0