FileDocCategorySizeDatePackage
ActiveRequestQueue.javaAPI DocExample3247Mon Feb 28 17:58:14 GMT 2000tuning.threads

ActiveRequestQueue.java

package tuning.threads;

public class ActiveRequestQueue
  //subclass the passive queue which holds the behaviour
  //needed for managing the queue of requests
  extends PassiveRequestQueue
  //and make us able to run in our own thread
  implements Runnable
{
  int MAXIMUM_NUM_SERVERS=3;

  //Data for the public queue - a list of private servers
  ActiveRequestQueue[] servers;

  //Data for the private (internal) queues
  //The RequestProcessor
  RequestProcessor requestProcessor;
  //Retain a handle on my thread so that we can easily access
  //it if we need control
  Thread myThread;
  //Keep a handle on the