org.apache.openejb.util
Class AsynchronousRunner
java.lang.Object
org.apache.openejb.util.AsynchronousRunner
public class AsynchronousRunner
- extends Object
Utility class used to invoke methods asynchronously, using a given Executor
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsynchronousRunner
public AsynchronousRunner(Executor executor)
runAsync
public Future<Object> runAsync(Object object,
Method method,
Object... arguments)
- Performs the given method invocation asynchronously
- Parameters:
object
- The object which will have the method invokedmethod
- The method to be invokedarguments
- The invocation arguments
- Returns:
- A
Future
containing the method return value
Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.