public void toStop() {
        toStop = true;

        if (localThread == null) {
            return;
        }

        // interrupt and wait
        localThread.interrupt();
        try {
            localThread.join();
        } catch (InterruptedException e) {
            logger.error(e.getMessage(), e);
        }
    }
job file clean thread

@author xuxueli 2017-12-29 16:23:43
larkmidtable-web/larkmt-core/src/main/java/com/larkmt/core/thread/JobLogFileCleanThread.java