连接超时之后不中断线程
This commit is contained in:
parent
9151233f11
commit
11681f12db
|
@ -65,8 +65,13 @@ public class EmailParsingActuator extends Thread{
|
|||
if (isStop) {
|
||||
String nowDate = DateUtils.formatDate(new Date(), "yyyy-MM-dd HH:mm:ss");
|
||||
log.info(nowDate + " " +this.emailProperties.getName()+" EmailParsingActuator is Stop!");
|
||||
try {
|
||||
Thread.sleep(1000L);
|
||||
} catch (InterruptedException e) {
|
||||
log.error("Thread sleep error");
|
||||
}
|
||||
// closeResource();
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
long start = System.currentTimeMillis();
|
||||
final EmailServiceManager emailServiceManager = EmailServiceManager.getInstance();
|
||||
|
|
Loading…
Reference in New Issue
Block a user