com.zusmart.base.util.ThreadUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zusmart-base Show documentation
Show all versions of zusmart-base Show documentation
提供基础的工具类及方法类,Logging,Scanner,Buffer,NetWork,Future,Thread
package com.zusmart.base.util;
import com.zusmart.base.logging.Logger;
import com.zusmart.base.logging.LoggerFactory;
public abstract class ThreadUtils {
private static final Logger logger = LoggerFactory.getLogger(ThreadUtils.class);
public static void sleep(long millis) {
try {
Thread.sleep(millis);
} catch (InterruptedException e) {
logger.error(e.getMessage(), e);
}
}
}