|
||||||||||
| 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
org.sapia.ubik.rmi.server.command.OutQueue
public class OutQueue
This queue stores outgoing Response objects until
they are processed.
| Method Summary | |
|---|---|
void |
add(Executable cmd)
Adds an Executable to this queue. |
static OutQueue |
getQueueFor(Destination dest)
Returns the OutQueue instance corresponding to the specific hosts. |
static void |
shutdownAll(long timeout)
Shuts down all statically kept OutQueue instances. |
| Methods inherited from class org.sapia.ubik.rmi.server.command.ExecQueue |
|---|
remove, removeAll, shutdown, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void shutdownAll(long timeout)
throws java.lang.InterruptedException
OutQueue instances.
timeout - a shutdown timeout - in millis.
java.lang.InterruptedExceptionpublic final void add(Executable cmd)
ExecQueueExecutable to this queue.
add in class ExecQueuecmd - an Executable.ExecQueue.add(Executable)public static final OutQueue getQueueFor(Destination dest)
OutQueue instance corresponding to the specific hosts.
Response objects are indeed kept on a per-host basis, so all responses
corresponding to a given host are sent at once to the latter, in the same trip - this
eventually spares remote calls.
OutQueue for the given Destination.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||