|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.utils.threading.InvocationStore
public class InvocationStore
Allows for the passing of responsibility of the queueing and subsequent executing of methods in one thread to the control of another thread. Particularly useful when getting threaded events to be executed during a gameloop.
Constructor Summary | |
---|---|
InvocationStore()
|
Method Summary | |
---|---|
void |
addMethodInvocation(java.lang.reflect.Method m,
java.lang.Object obj,
java.lang.Object[] args)
Adds the method invocation. |
void |
executeAll()
Execute all. |
void |
reset()
Reset. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InvocationStore()
Method Detail |
---|
public void addMethodInvocation(java.lang.reflect.Method m, java.lang.Object obj, java.lang.Object[] args)
m
- the mobj
- the objargs
- the argspublic void executeAll() throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.lang.IllegalArgumentException
- the illegal argument exception
java.lang.IllegalAccessException
- the illegal access exception
java.lang.reflect.InvocationTargetException
- the invocation target exceptionpublic void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |