Examples of TdTimer


Examples of net.sourceforge.cruisecontrol.util.TdTimer

     * same as Thread t.wait()
     *
     * @return TRUE is all tasks finished, FALSE if timeout occurred
     */
    public static boolean waitForAll(int timeout) {
        TdTimer myTimer = new TdTimer();
        while (!ThreadQueue.isQueueIdle()) {
            sleep(sleepTime);
            if (myTimer.time() > timeout) {
                return false;
            }
        }
        return true;
    }
View Full Code Here

Examples of net.sourceforge.cruisecontrol.util.TdTimer

     */
    public static boolean waitFor(String taskName, int timeout) {
        if (!taskExists(taskName)) {
            return false;
        }
        TdTimer myTimer = new TdTimer();
        while (!getThreadQueue().resultList.containsKey(taskName)) {
            sleep(sleepTime);
            if (myTimer.split() > timeout) {
                return false;
            }
        }
        return true;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.