@@ -50,17 +50,17 @@ public class BaseMsgThread extends Thread {
5050 /**
5151 * 当前线程成功数
5252 */
53- public final ThreadLocal <Integer > currentThreadSuccessCount = ThreadLocal .withInitial (() -> 0 );
53+ public final ThreadLocal <Integer > successCountLocal = ThreadLocal .withInitial (() -> 0 );
5454
5555 /**
5656 * 当前线程失败数
5757 */
58- public final ThreadLocal <Integer > currentThreadFailCount = ThreadLocal .withInitial (() -> 0 );
58+ public final ThreadLocal <Integer > failCountLocal = ThreadLocal .withInitial (() -> 0 );
5959
6060 /**
6161 * 线程列表table
6262 */
63- public JTable pushThreadTable ;
63+ public final ThreadLocal < JTable > pushTableLocal = new ThreadLocal <>() ;
6464
6565 /**
6666 * 当前线程所在的线程列表行
@@ -95,13 +95,13 @@ public void initCurrentThread() {
9595 list = PushData .toSendList .subList (startIndex , endIndex );
9696
9797 // 初始化线程列表行
98- pushThreadTable = PushForm .getInstance ().getPushThreadTable ();
99- currentThreadSuccessCount .set (0 );
100- currentThreadFailCount .set (0 );
101- pushThreadTable . setValueAt (currentThreadSuccessCount .get (), tableRow , 2 );
102- pushThreadTable . setValueAt (currentThreadFailCount .get (), tableRow , 3 );
103- pushThreadTable .setValueAt (list .size (), tableRow , 4 );
104- pushThreadTable .setValueAt (0 , tableRow , 5 );
98+ pushTableLocal . set ( PushForm .getInstance ().getPushThreadTable () );
99+ successCountLocal .set (0 );
100+ failCountLocal .set (0 );
101+ pushTableLocal . get (). setValueAt (successCountLocal .get (), tableRow , 2 );
102+ pushTableLocal . get (). setValueAt (failCountLocal .get (), tableRow , 3 );
103+ pushTableLocal . get () .setValueAt (list .size (), tableRow , 4 );
104+ pushTableLocal . get () .setValueAt (0 , tableRow , 5 );
105105 }
106106
107107 /**
0 commit comments