public class AsynchronousRunner
extends java.lang.Object
Executor
.Constructor and Description |
---|
AsynchronousRunner(java.util.concurrent.Executor executor) |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Future<java.lang.Object> |
runAsync(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object... arguments)
Performs the given method invocation asynchronously
|
public AsynchronousRunner(java.util.concurrent.Executor executor)
public java.util.concurrent.Future<java.lang.Object> runAsync(java.lang.Object object, java.lang.reflect.Method method, java.lang.Object... arguments)
object
- The object which will have the method invokedmethod
- The method to be invokedarguments
- The invocation argumentsFuture
containing the method return value