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
f6a5d469
Commit
f6a5d469
authored
May 04, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动变量处理
parent
cd2e7307
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
MqMessageInitPlan.java
.../main/java/com/yanzuoguang/mq/plan/MqMessageInitPlan.java
+3
-3
MqQueueInitPlan.java
...rc/main/java/com/yanzuoguang/mq/plan/MqQueueInitPlan.java
+2
-2
No files found.
yzg-util-mq/src/main/java/com/yanzuoguang/mq/plan/MessageInitPlan.java
→
yzg-util-mq/src/main/java/com/yanzuoguang/mq/plan/M
qM
essageInitPlan.java
View file @
f6a5d469
...
...
@@ -16,7 +16,7 @@ import java.util.List;
* 消息队列初始化服务,用于重启时,初始化消息队列对象
*/
@Component
public
class
MessageInitPlan
implements
ThreadNext
.
Next
,
Runnable
{
public
class
M
qM
essageInitPlan
implements
ThreadNext
.
Next
,
Runnable
{
@Autowired
private
MessageService
messageService
;
...
...
@@ -27,7 +27,7 @@ public class MessageInitPlan implements ThreadNext.Next, Runnable {
@Value
(
"${yzg.mq.retry.time:60000}"
)
private
int
retryTime
;
public
MessageInitPlan
()
{
public
M
qM
essageInitPlan
()
{
ThreadNext
.
start
(
this
,
"message init error"
);
}
...
...
@@ -64,7 +64,7 @@ public class MessageInitPlan implements ThreadNext.Next, Runnable {
try
{
messageService
.
nextSend
(
message
);
}
catch
(
Exception
ex
)
{
Log
.
error
(
MessageInitPlan
.
class
,
ex
);
Log
.
error
(
M
qM
essageInitPlan
.
class
,
ex
);
}
}
}
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/plan/QueueInitPlan.java
→
yzg-util-mq/src/main/java/com/yanzuoguang/mq/plan/
Mq
QueueInitPlan.java
View file @
f6a5d469
...
...
@@ -9,12 +9,12 @@ import org.springframework.stereotype.Component;
* 消息队列初始化服务,用于重启时,初始化消息队列对象
*/
@Component
public
class
QueueInitPlan
implements
ThreadNext
.
Next
{
public
class
Mq
QueueInitPlan
implements
ThreadNext
.
Next
{
@Autowired
private
QueueService
queueService
;
public
QueueInitPlan
()
{
public
Mq
QueueInitPlan
()
{
ThreadNext
.
start
(
this
,
"queue init error"
);
}
...
...
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