|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ov4j.cache.MethodCaller
public class MethodCaller
This class performs the method calls.
| Field Summary | |
|---|---|
protected java.util.TimerTask |
theTimer
Task setting timeout flag after the timeout period. |
| Constructor Summary | |
|---|---|
MethodCaller(java.lang.reflect.Method theMethod,
java.lang.Object theObj,
java.lang.Object... theArgs)
Constructor. |
|
| Method Summary | |
|---|---|
void |
call(long timeout)
Start the threads to perform the call. |
java.lang.Exception |
getError()
|
java.lang.Object |
getTheResult()
|
boolean |
hasFailed()
|
boolean |
hasTimedout()
|
void |
invokeMethod()
Invoke the method. |
void |
setTimedout(boolean timedout)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.TimerTask theTimer
| Constructor Detail |
|---|
public MethodCaller(java.lang.reflect.Method theMethod,
java.lang.Object theObj,
java.lang.Object... theArgs)
theMethod - The method to call.theObj - The object on which to call it.theArgs - The arguments to pass to the method call.| Method Detail |
|---|
public void call(long timeout)
timeout - Timeout period.public java.lang.Exception getError()
public java.lang.Object getTheResult()
public boolean hasFailed()
public boolean hasTimedout()
public void invokeMethod()
public void setTimedout(boolean timedout)
timedout - The timedout to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||