T - The return type of the method invocation.public class InvocationCallable<T> extends Object implements Callable<T>, Supplier<T>
MethodInvocation object in a Callable for asynchronous
execution. Besides Callable, the created class does also implement Supplier.
When calling the supplier's get() method, all non-runtime exceptions that occur during
execution will be wrapped into a RuntimeException.| Modifier and Type | Method and Description |
|---|---|
T |
call() |
static InvocationCallable<?> |
fromInvocation(org.aopalliance.intercept.MethodInvocation invocation)
Wraps the given AOP method invocation into a runnable for asynchronous execution.
|
T |
get() |
public static InvocationCallable<?> fromInvocation(org.aopalliance.intercept.MethodInvocation invocation)
invocation - The invocation to wrap.Copyright © 2014–2018. All rights reserved.