FileDocCategorySizeDatePackage
TestQueue.javaAPI DocExample1165Thu Dec 24 21:03:52 GMT 1998tuning.server

TestQueue

public class TestQueue extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        ActiveRequestQueue q = new ActiveRequestQueue(2);
	q.acceptRequest(new Request());
	q.acceptRequest(new Request());
	q.acceptRequest(new Request());
	q.acceptRequest(new Request());
        //stagger the requests juts slightly
        try{Thread.sleep(1000);}catch(InterruptedException e){}
	q.acceptRequest(new Request());
	q.acceptRequest(new Request());
	q.acceptRequest(new Request());
	q.acceptRequest(new Request());
	q.acceptRequest(new Request());
	q.acceptRequest(new Request());
	q.acceptRequest(new Request());