Annotation 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");
 }