Alachisoft.NCache.Common.Threading.ThreadUtil Maven / Gradle / Ivy
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Alachisoft.NCache.Common.Threading;
/**
* @author taimoor_haider
*/
public class ThreadUtil {
public static boolean wait(Object waitObject, long timeout) throws InterruptedException {
long start = System.currentTimeMillis();
waitObject.wait(timeout);
long end = System.currentTimeMillis();
return (end - start) >= timeout ? false : true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy