com.softicar.platform.common.core.thread.sleeper.DefaultSleeper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.core.thread.sleeper;
import com.softicar.platform.common.core.threading.InterruptedRuntimeException;
/**
* Default implementation of {@link ISleeper}, calling {@link Thread#sleep}.
*
* @author Oliver Richers
*/
public class DefaultSleeper implements ISleeper {
@Override
public void sleep(long millis) {
try {
Thread.sleep(millis);
} catch (InterruptedException exception) {
throw new InterruptedRuntimeException(exception);
}
}
}