|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.m2mi.InvocationQueue
public class InvocationQueue
Class InvocationQueue provides a queue of Invocation
objects waiting to be processed. An invocation
object is added to the invocation queue when a method is called on a handle
or when an incoming M2MI message arrives from the network. One or more
InvocationThread
s perform the actual method
invocations on the target objects of the invocation objects in the invocation
queue.
Note: Class InvocationQueue is multiple thread safe.
Constructor Summary | |
---|---|
InvocationQueue()
Construct a new, empty invocation queue. |
Method Summary | |
---|---|
void |
add(Invocation invocation)
Add the given invocation object to the end of this invocation queue. |
void |
invokeNext()
Invoke the target method on the next target object in the invocation object at the front of this invocation queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InvocationQueue()
Method Detail |
---|
public void add(Invocation invocation)
invocation
- Invocation object.
NullPointerException
- (unchecked exception) Thrown if invocation is null.public void invokeNext() throws InterruptedException
InterruptedException
- Thrown if the calling thread is interrupted while blocked in this
method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |