Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
4a9e8a31
Commit
4a9e8a31
authored
Jun 14, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正redis 最大连接数
parent
d285c2c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
device-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DeviceComsumersRegisterService.java
...on/applicationservice/DeviceComsumersRegisterService.java
+5
-5
No files found.
device-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DeviceComsumersRegisterService.java
View file @
4a9e8a31
...
...
@@ -49,8 +49,8 @@ public class DeviceComsumersRegisterService implements IApplicationStartedServic
deviceService
.
find
(
new
DeviceEntity
())
.
stream
()
.
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
platformService
.
getCache
(
f
.
getPlatformId
()
==
null
?
"0"
:
f
.
getPlatformId
().
toString
())))
.
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
productService
.
getCache
(
f
.
getProductId
()
==
null
?
"0"
:
f
.
getProductId
().
toString
()))).
forEach
(
item
->
{
.
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
platformService
.
getCache
(
f
.
getPlatformId
()
==
null
?
"0"
:
f
.
getPlatformId
().
toString
())))
.
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
productService
.
getCache
(
f
.
getProductId
()
==
null
?
"0"
:
f
.
getProductId
().
toString
()))).
forEach
(
item
->
{
String
uploadQueue
=
Constant
.
UPLOAD_TOPIC
+
item
.
getDeviceCode
();
String
downQueue
=
Constant
.
DOWN_TOPIC
+
item
.
getDeviceCode
();
messageProducer
.
queueAddAndBinds
(
QueueKey
.
DEFAULT_EXCHANGE
,
uploadQueue
,
uploadQueue
);
...
...
@@ -59,9 +59,9 @@ public class DeviceComsumersRegisterService implements IApplicationStartedServic
String
[]
queues
=
deviceService
.
find
(
new
DeviceEntity
())
.
stream
()
.
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
platformService
.
getCache
(
f
.
getPlatformId
().
toString
())))
.
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
productService
.
getCache
(
f
.
getProductId
().
toString
())))
.
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
f
.
getDeviceCode
()))
.
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
platformService
.
getCache
(
f
.
getPlatformId
()
==
null
?
"-1"
:
f
.
getPlatformId
()
.
toString
())))
.
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
productService
.
getCache
(
f
.
getProductId
()
==
null
?
"-1"
:
f
.
getProductId
()
.
toString
())))
.
filter
(
f
->
!
ObjectUtils
.
isEmpty
(
f
.
getDeviceCode
()))
.
map
(
item
->
Constant
.
UPLOAD_TOPIC
+
item
.
getDeviceCode
())
.
toArray
(
String
[]::
new
);
...
...
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