FileDocCategorySizeDatePackage
PassiveRequestQueue.javaAPI DocExample506Thu Dec 24 20:59:36 GMT 1998tuning.server

PassiveRequestQueue

public class PassiveRequestQueue extends Object

Fields Summary
FIFO_Queue
queue
Constructors Summary
Methods Summary
public synchronized voidacceptRequest(Request r)


      
  
    queue.add(r);
    notify();
  
public synchronized RequestreleaseRequest()

    for(;;)
    {
      if (queue.isEmpty())
        try {wait();} catch (InterruptedException e){}
      //Need to check again, in case the we were interrupted
      if (!queue.isEmpty())
        return (Request) queue.pop();
    }