public static void sleep(final TimeUnit timeUnit, final int time) {
        try {
            timeUnit.sleep(time);
        } catch (InterruptedException ex) {
            Thread.currentThread().interrupt();
        }
    }
sleep current thread.

@param timeUnit the time unit
@param time     the time
shenyu-common/src/main/java/org/apache/shenyu/common/utils/ThreadUtils.java