Package org.rioproject.test

Examples of org.rioproject.test.TimeoutException


                if (condition.test()) {   // -> STABILITY_WAIT
                    state = STABILITY_WAIT;
                    stabilityTime = time + getStabilityTimeout();
                    logger.info("Ensuring stable state ...");
                } else if (time > maxTime) {        // ERROR
                    throw new TimeoutException();
                }
            } else {
                if (!condition.test()) {   // -> WAIT
                    state = WAIT;
                    logger.info("Waiting again ...");
                } else if (time > stabilityTime) {  // SUCCESS
                    break;
                } else if (time > maxTime) {        // ERROR
                    throw new TimeoutException();
                }
            }
            try {
                Thread.sleep(TIME_STEP);
            } catch (InterruptedException e) {
View Full Code Here

TOP

Related Classes of org.rioproject.test.TimeoutException

Copyright © 2018 www.massapicom. 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.