spring-framework / org.springframework.aop.interceptor / AsyncExecutionInterceptor / invoke

invoke

@Nullable open fun invoke(invocation: MethodInvocation): Any

Overrides MethodInterceptor.invoke

Intercept the given method invocation, submit the actual calling of the method to the correct task executor and return immediately to the caller.

Parameters

invocation - the method to intercept and make asynchronous

Return
Future if the original method returns Future; null otherwise.