Annotation Type Asynchronous



  • @Documented
    @Retention(RUNTIME)
    @Target({METHOD,TYPE})
    @InterceptorBinding
    @Inherited
    public @interface Asynchronous
    Wrap the execution and invoke it asynchronously. Any methods marked with this annotation must return Future. Otherwise, FaultToleranceDefinitionException occurs. Example usage:
     @Asynchronous
     public Future<String> getString() {
      return CompletableFuture.completedFuture("hello");
     }