记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
d6234e4c
Commit
d6234e4c
authored
Jul 16, 2021
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改通知逻辑
parent
64f59d22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
RedisStreamConfig.java
...ice/consumer/dragon/service/config/RedisStreamConfig.java
+4
-4
No files found.
liquidnet-bus-service/liquidnet-service-consumer-all/liquidnet-service-consumer-dragon/src/main/java/com/liquidnet/service/consumer/dragon/service/config/RedisStreamConfig.java
View file @
d6234e4c
...
@@ -147,8 +147,8 @@ public class RedisStreamConfig {
...
@@ -147,8 +147,8 @@ public class RedisStreamConfig {
.
pollTimeout
(
Duration
.
ofMillis
(
1
))
.
pollTimeout
(
Duration
.
ofMillis
(
1
))
.
build
();
.
build
();
var
listenerContainer
=
StreamMessageListenerContainer
.
create
(
factory
,
options
);
var
listenerContainer
=
StreamMessageListenerContainer
.
create
(
factory
,
options
);
var
subscription
=
listenerContainer
.
receiveAutoAck
(
Consumer
.
from
(
DragonConstant
.
MysqlRedisQueueEnum
.
DRAGON_PAY_NOTIFY
_GROUP
.
getCode
(),
"pay-mch-notify-fail-0"
),
var
subscription
=
listenerContainer
.
receiveAutoAck
(
Consumer
.
from
(
DragonConstant
.
MysqlRedisQueueEnum
.
PAY_MCH_NOTIFY_ERROR
_GROUP
.
getCode
(),
"pay-mch-notify-fail-0"
),
StreamOffset
.
create
(
DragonConstant
.
MysqlRedisQueueEnum
.
DRAGON_PAY_NOTIFY_KEY
.
getCode
(),
ReadOffset
.
lastConsumed
()),
redisPayNotify
Receiver
);
StreamOffset
.
create
(
DragonConstant
.
MysqlRedisQueueEnum
.
PAY_MCH_NOTIFY_ERROR_KEY
.
getCode
(),
ReadOffset
.
lastConsumed
()),
redisMchNotifyFail
Receiver
);
listenerContainer
.
start
();
listenerContainer
.
start
();
return
subscription
;
return
subscription
;
}
}
...
@@ -161,8 +161,8 @@ public class RedisStreamConfig {
...
@@ -161,8 +161,8 @@ public class RedisStreamConfig {
.
pollTimeout
(
Duration
.
ofMillis
(
1
))
.
pollTimeout
(
Duration
.
ofMillis
(
1
))
.
build
();
.
build
();
var
listenerContainer
=
StreamMessageListenerContainer
.
create
(
factory
,
options
);
var
listenerContainer
=
StreamMessageListenerContainer
.
create
(
factory
,
options
);
var
subscription
=
listenerContainer
.
receiveAutoAck
(
Consumer
.
from
(
DragonConstant
.
MysqlRedisQueueEnum
.
DRAGON_PAY_NOTIFY
_GROUP
.
getCode
(),
"pay-mch-notify-fail-1"
),
var
subscription
=
listenerContainer
.
receiveAutoAck
(
Consumer
.
from
(
DragonConstant
.
MysqlRedisQueueEnum
.
PAY_MCH_NOTIFY_ERROR
_GROUP
.
getCode
(),
"pay-mch-notify-fail-1"
),
StreamOffset
.
create
(
DragonConstant
.
MysqlRedisQueueEnum
.
DRAGON_PAY_NOTIFY_KEY
.
getCode
(),
ReadOffset
.
lastConsumed
()),
redisPayNotify
Receiver
);
StreamOffset
.
create
(
DragonConstant
.
MysqlRedisQueueEnum
.
PAY_MCH_NOTIFY_ERROR_KEY
.
getCode
(),
ReadOffset
.
lastConsumed
()),
redisMchNotifyFail
Receiver
);
listenerContainer
.
start
();
listenerContainer
.
start
();
return
subscription
;
return
subscription
;
}
}
...
...
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