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