Package com.emc.vipr.client.exceptions

Examples of com.emc.vipr.client.exceptions.TimeoutException


    public static TaskResourceRep waitForTask(RestClient client, TaskResourceRep task, long timeoutMillis) {
        long startTime = System.currentTimeMillis();
        while (isRunning(task)) {
            if (timeoutMillis > 0 && (System.currentTimeMillis() - startTime) > timeoutMillis) {
                throw new TimeoutException("Timed out waiting for task to complete");
            }
            try {
                Thread.sleep(client.getConfig().getTaskPollingInterval());
            }
            catch (InterruptedException e) {
View Full Code Here

TOP

Related Classes of com.emc.vipr.client.exceptions.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.