Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
signal
traffic-signal-platform
Commits
0c382ec1
Commit
0c382ec1
authored
Jul 31, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 测试优化线程池运行1
parent
386fdfaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SignalStatusTask.java
...ce/src/main/java/net/wanji/utc/task/SignalStatusTask.java
+2
-2
No files found.
signal-utc-service/src/main/java/net/wanji/utc/task/SignalStatusTask.java
View file @
0c382ec1
...
@@ -97,6 +97,7 @@ public class SignalStatusTask {
...
@@ -97,6 +97,7 @@ public class SignalStatusTask {
lightsStatusVOS
=
mapper
.
convertValue
(
jsonViewObject
.
getContent
(),
new
TypeReference
<
List
<
LightsStatusVO
>>()
{});
lightsStatusVOS
=
mapper
.
convertValue
(
jsonViewObject
.
getContent
(),
new
TypeReference
<
List
<
LightsStatusVO
>>()
{});
}
}
long
end
=
System
.
currentTimeMillis
();
long
end
=
System
.
currentTimeMillis
();
log
.
info
(
"当前路口编号:{},海康返回灯态时间:{}ms"
,
crossId
,
(
end
-
start
));
RealTimeDataWebSocket
webSocket
=
entry
.
getValue
();
RealTimeDataWebSocket
webSocket
=
entry
.
getValue
();
if
(!
CollectionUtils
.
isEmpty
(
lightsStatusVOS
))
{
if
(!
CollectionUtils
.
isEmpty
(
lightsStatusVOS
))
{
...
@@ -126,10 +127,9 @@ public class SignalStatusTask {
...
@@ -126,10 +127,9 @@ public class SignalStatusTask {
});
});
}
}
}
}
commonThreadPoolExecutor
.
shutdown
();
log
.
info
(
"当前线程数量:{}"
,
Thread
.
currentThread
().
activeCount
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"实时推送灯态数据失败"
,
e
);
log
.
error
(
"实时推送灯态数据失败"
,
e
);
}
}
log
.
info
(
"当前线程数量:{}"
,
Thread
.
currentThread
().
activeCount
());
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment