|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.server.command.ExecQueue
public class ExecQueue
Models a queue of Executable instances.
| Constructor Summary | |
|---|---|
ExecQueue()
Constructor for CommandQueue. |
|
| Method Summary | |
|---|---|
void |
add(Executable toExecute)
Adds an Executable to this queue. |
Executable |
remove()
Removes the first Executable from this queue and returns it. |
java.util.List |
removeAll()
Removes all the Executable from this queue and
returns them; if the queue is empty, this method blocks until
a new item is added. |
void |
shutdown(long timeout)
Shuts down this instance. |
int |
size()
Returns this queue's size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExecQueue()
| Method Detail |
|---|
public void add(Executable toExecute)
Executable to this queue.
toExecute - an Executable.
public java.util.List removeAll()
throws java.lang.InterruptedException,
ShutdownException
Executable from this queue and
returns them; if the queue is empty, this method blocks until
a new item is added.
List of Executable.
java.lang.InterruptedException
ShutdownException
public void shutdown(long timeout)
throws java.lang.InterruptedException
timeout - a timeout in millis. If this queue still has pending
objects after the timeout is reached, this method returns.
java.lang.InterruptedExceptionpublic int size()
public Executable remove()
throws java.lang.InterruptedException,
ShutdownException
Executable from this queue and returns it.
Executable.
java.lang.InterruptedException
ShutdownException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||