|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openejb.util.AsynchronousRunner
public class AsynchronousRunner
Utility class used to invoke methods asynchronously, using a given Executor
.
Constructor Summary | |
---|---|
AsynchronousRunner(java.util.concurrent.Executor executor)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsynchronousRunner(java.util.concurrent.Executor executor)
Method Detail |
---|
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 arguments
Future
containing the method return value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |