Annotation Type ReactiveTransactional


  • @Inherited
    @InterceptorBinding
    @Target({TYPE,METHOD})
    @Retention(RUNTIME)
    public @interface ReactiveTransactional
    Use this annotation on your method to run them in a reactive Mutiny.Transaction. If the annotated method returns a Uni, this has exactly the same behaviour as if the method was enclosed in a call to Mutiny.Session.withTransaction(java.util.function.Function). Otherwise, invocations are only allowed when not running from a VertxThread and the behaviour will be the same as a blocking call to Mutiny.Session.withTransaction(java.util.function.Function).