perf: 使用异步线程来重连61850
parent
94277eaebb
commit
ef38aa2675
@ -0,0 +1,15 @@
|
|||||||
|
package com.xydl.cac.iec;
|
||||||
|
|
||||||
|
import com.xydl.cac.model.StaticVariable;
|
||||||
|
|
||||||
|
public class NetErrorThread extends Thread {
|
||||||
|
public int iedId;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
IecClient iecClient = StaticVariable.realTimeClientMap.get(iedId);
|
||||||
|
if (iecClient != null) {
|
||||||
|
iecClient.associationClosed(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue