Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
YZG
yzg-util
Commits
2b176be2
Commit
2b176be2
authored
May 20, 2020
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置打包时可以通过GIT查看源码
parent
7143980e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
QueueService.java
...rc/main/java/com/yanzuoguang/mq/service/QueueService.java
+2
-2
MqServiceImpl.java
...n/java/com/yanzuoguang/mq/service/impl/MqServiceImpl.java
+3
-1
No files found.
yzg-util-mq/src/main/java/com/yanzuoguang/mq/service/QueueService.java
View file @
2b176be2
...
@@ -7,6 +7,7 @@ import com.yanzuoguang.util.vo.PageSizeData;
...
@@ -7,6 +7,7 @@ import com.yanzuoguang.util.vo.PageSizeData;
/**
/**
* 队列服务
* 队列服务
*
* @author 颜佐光
* @author 颜佐光
*/
*/
public
interface
QueueService
{
public
interface
QueueService
{
...
@@ -15,6 +16,5 @@ public interface QueueService {
...
@@ -15,6 +16,5 @@ public interface QueueService {
*
*
* @param req 保存队列服务
* @param req 保存队列服务
*/
*/
void
void
create
(
QueueVo
req
);
create
(
QueueVo
req
);
}
}
yzg-util-mq/src/main/java/com/yanzuoguang/mq/service/impl/MqServiceImpl.java
View file @
2b176be2
...
@@ -317,12 +317,14 @@ public class MqServiceImpl implements MqService {
...
@@ -317,12 +317,14 @@ public class MqServiceImpl implements MqService {
// 发送消息,等待下次重新发送
// 发送消息,等待下次重新发送
req
.
addPos
();
req
.
addPos
();
String
json
=
JsonHelper
.
serialize
(
req
);
if
(
sendQueueName
.
isEmpty
())
{
if
(
sendQueueName
.
isEmpty
())
{
String
json
=
JsonHelper
.
serialize
(
req
);
return
this
.
message
(
new
MessageVo
(
req
.
getQueueName
(),
req
.
getQueueName
(),
json
,
req
.
getNextDelayTime
()));
return
this
.
message
(
new
MessageVo
(
req
.
getQueueName
(),
req
.
getQueueName
(),
json
,
req
.
getNextDelayTime
()));
}
else
{
}
else
{
String
ret
=
StringHelper
.
EMPTY
;
String
ret
=
StringHelper
.
EMPTY
;
for
(
String
name
:
sendQueueName
)
{
for
(
String
name
:
sendQueueName
)
{
req
.
setToken
(
name
);
String
json
=
JsonHelper
.
serialize
(
req
);
ret
=
this
.
message
(
new
MessageVo
(
name
,
name
,
json
));
ret
=
this
.
message
(
new
MessageVo
(
name
,
name
,
json
));
}
}
return
ret
;
return
ret
;
...
...
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