public final class InvocationTask extends Object implements Runnable
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.
| Modifier and Type | Method and Description |
|---|---|
Object |
getResult()
Returns the result from the method invocation.
|
protected Throwable |
getThrowable()
Returns the optional thrown throwable.
|
boolean |
isCompleted()
Indicates whether the task is completed.
|
void |
run()
Invokes the method.
|
public Object getResult()
protected Throwable getThrowable()
public void run()
run in interface RunnableRunnable.run()public boolean isCompleted()
true if the task is completed, else
falseCopyright © 2005–2020. All rights reserved.