|
|
@ -63,7 +63,6 @@ import java.net.URL; |
|
|
|
import java.security.KeyStore; |
|
|
|
import java.security.KeyStore; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Timer; |
|
|
|
import java.util.Timer; |
|
|
|
import java.util.TimerTask; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class DesignerSocketIO { |
|
|
|
public class DesignerSocketIO { |
|
|
|
|
|
|
|
|
|
|
@ -245,26 +244,20 @@ public class DesignerSocketIO { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void call(Object... objects) { |
|
|
|
public void call(Object... objects) { |
|
|
|
FineLoggerFactory.getLogger().info("start disConnectHintTimer"); |
|
|
|
FineLoggerFactory.getLogger().info("start disConnectHintTimer"); |
|
|
|
disConnectHintTimer = new Timer(); |
|
|
|
try { |
|
|
|
disConnectHintTimer.schedule(new TimerTask() { |
|
|
|
/* |
|
|
|
@Override |
|
|
|
* todo 远程心跳断开不一定 socket 断开 和远程紧密相关的业务都绑定在心跳上,切换成心跳断开之后进行提醒, |
|
|
|
public void run() { |
|
|
|
* socket 只用推日志和通知配置变更 |
|
|
|
try { |
|
|
|
*/ |
|
|
|
/* |
|
|
|
printLog(objects, PrintEventLogImpl.ERROR, "disConnected args: {}"); |
|
|
|
* todo 远程心跳断开不一定 socket 断开 和远程紧密相关的业务都绑定在心跳上,切换成心跳断开之后进行提醒, |
|
|
|
if (status != Status.Disconnecting) { |
|
|
|
* socket 只用推日志和通知配置变更 |
|
|
|
dealWithSocketDisconnect(); |
|
|
|
*/ |
|
|
|
|
|
|
|
printLog(objects, PrintEventLogImpl.ERROR, "disConnected args: {}"); |
|
|
|
|
|
|
|
if (status != Status.Disconnecting) { |
|
|
|
|
|
|
|
dealWithSocketDisconnect(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
status = Status.Disconnected; |
|
|
|
|
|
|
|
} finally { |
|
|
|
|
|
|
|
disConnectHintTimer.cancel(); |
|
|
|
|
|
|
|
disConnectHintTimer = null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, disConnectHintTimerDelay); |
|
|
|
status = Status.Disconnected; |
|
|
|
|
|
|
|
} finally { |
|
|
|
|
|
|
|
disConnectHintTimer.cancel(); |
|
|
|
|
|
|
|
disConnectHintTimer = null; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|