|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bea.domingo.service.InvocationTask
public final class InvocationTask
Invocation task for worker thread.
An Invocation task is an implementation of the Runnable
interface where the run()
method executes a method on an
object with an array of arguments.
This task is used to delegate method calls to worker threads in a generic way.
Constructor Summary | |
---|---|
InvocationTask(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object[] args)
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
getResult()
Returns the result from the method invocation. |
protected java.lang.Throwable |
getThrowable()
Returns the optional thrown throwable. |
boolean |
isCompleted()
Indicates whether the task is completed. |
void |
run()
Invokes the method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
InvocationTask(java.lang.Object object, java.lang.reflect.Method method, java.lang.Object[] args)
object
- the object to invoke the method onmethod
- the method to invokeargs
- the arguments for the methodMethod Detail |
---|
public java.lang.Object getResult()
protected java.lang.Throwable getThrowable()
public void run()
run
in interface java.lang.Runnable
Runnable.run()
public boolean isCompleted()
true
if the task is completed, else
false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |