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 returnFuture
. Otherwise,FaultToleranceDefinitionException
occurs. Example usage:@Asynchronous
public Future<String> getString() { return CompletableFuture.completedFuture("hello"); }