public void waitFor()

in bigtop-bigpetstore/bigpetstore-transaction-queue/src/main/java/org/apache/bigtop/bigpetstore/qstream/LoadGen.java [71:88]


    public void waitFor(long milliseconds, LinkedBlockingQueue<Transaction> q){
        try{
            Thread.sleep(milliseconds);
        }
        catch(Throwable t){
        }
        /**
         * Sleep for 2 seconds at a time until queue is full.
         */
        while(q.size()<100) {
            try{
                Thread.sleep(2000L);
            }
            catch(Throwable t){

            }
        }
    }