Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
baa110f8
Commit
baa110f8
authored
Jul 27, 2022
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
名称修改
parent
c89b7f02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
order-application-service/src/main/java/cn/freemud/amp/config/DlPayQueryMqConfig.java
+4
-4
No files found.
order-application-service/src/main/java/cn/freemud/amp/config/DlPayQueryMqConfig.java
View file @
baa110f8
...
@@ -16,7 +16,7 @@ public class DlPayQueryMqConfig {
...
@@ -16,7 +16,7 @@ public class DlPayQueryMqConfig {
* 消费队列
* 消费队列
*/
*/
public
static
final
String
KGD_PAY_QUERY_QUEUE
=
"kgd_pay_query_queue"
;
public
static
final
String
KGD_PAY_QUERY_QUEUE
=
"kgd_pay_query_queue"
;
public
static
final
String
KGD_PAY
MENT
_QUERY_KEY
=
"kgd_pay_query_key"
;
public
static
final
String
KGD_PAY_QUERY_KEY
=
"kgd_pay_query_key"
;
/**
/**
* 死信队列
* 死信队列
...
@@ -49,7 +49,7 @@ public class DlPayQueryMqConfig {
...
@@ -49,7 +49,7 @@ public class DlPayQueryMqConfig {
*/
*/
@Bean
(
"bindingPayQueueChange"
)
@Bean
(
"bindingPayQueueChange"
)
Binding
bindingPaymentChange
(
@Qualifier
(
"payQueueName"
)
Queue
queue
,
@Qualifier
(
"dlPayMqTopicExchange"
)
Exchange
topicExchange
)
{
Binding
bindingPaymentChange
(
@Qualifier
(
"payQueueName"
)
Queue
queue
,
@Qualifier
(
"dlPayMqTopicExchange"
)
Exchange
topicExchange
)
{
return
BindingBuilder
.
bind
(
queue
).
to
(
topicExchange
).
with
(
KGD_PAY
MENT
_QUERY_KEY
).
noargs
();
return
BindingBuilder
.
bind
(
queue
).
to
(
topicExchange
).
with
(
KGD_PAY_QUERY_KEY
).
noargs
();
}
}
...
@@ -59,7 +59,7 @@ public class DlPayQueryMqConfig {
...
@@ -59,7 +59,7 @@ public class DlPayQueryMqConfig {
// DLX,dead letter发送到的exchange
// DLX,dead letter发送到的exchange
delayQueueParams
.
put
(
"x-dead-letter-exchange"
,
TopicExchangeConfig
.
EXCHANGE_NAME
);
delayQueueParams
.
put
(
"x-dead-letter-exchange"
,
TopicExchangeConfig
.
EXCHANGE_NAME
);
// dead letter携带的routing key
// dead letter携带的routing key
delayQueueParams
.
put
(
"x-dead-letter-routing-key"
,
KGD_PAY
MENT
_QUERY_KEY
);
delayQueueParams
.
put
(
"x-dead-letter-routing-key"
,
KGD_PAY_QUERY_KEY
);
//时间
//时间
//delayQueueParams.put("x-message-ttl", 20*1000);
//delayQueueParams.put("x-message-ttl", 20*1000);
return
QueueBuilder
.
durable
(
KGD_PAY_QUERY_DL_QUEUE
).
withArguments
(
delayQueueParams
).
build
();
return
QueueBuilder
.
durable
(
KGD_PAY_QUERY_DL_QUEUE
).
withArguments
(
delayQueueParams
).
build
();
...
@@ -69,7 +69,7 @@ public class DlPayQueryMqConfig {
...
@@ -69,7 +69,7 @@ public class DlPayQueryMqConfig {
Binding
bindingPaymentDlChange
(
@Qualifier
(
"payChangeDlQueue"
)
Queue
queue
,
@Qualifier
(
"dlPayMqTopicExchange"
)
Exchange
topicExchange
)
{
Binding
bindingPaymentDlChange
(
@Qualifier
(
"payChangeDlQueue"
)
Queue
queue
,
@Qualifier
(
"dlPayMqTopicExchange"
)
Exchange
topicExchange
)
{
Map
<
String
,
Object
>
args
=
new
HashMap
<>(
2
);
Map
<
String
,
Object
>
args
=
new
HashMap
<>(
2
);
args
.
put
(
"x-dead-letter-exchange"
,
TopicExchangeConfig
.
EXCHANGE_NAME
);
args
.
put
(
"x-dead-letter-exchange"
,
TopicExchangeConfig
.
EXCHANGE_NAME
);
args
.
put
(
"x-dead-letter-routing-key"
,
KGD_PAY
MENT
_QUERY_KEY
);
args
.
put
(
"x-dead-letter-routing-key"
,
KGD_PAY_QUERY_KEY
);
return
BindingBuilder
.
bind
(
queue
).
to
(
topicExchange
).
with
(
KGD_PAY_QUERY_DL_KEY
).
and
(
args
);
return
BindingBuilder
.
bind
(
queue
).
to
(
topicExchange
).
with
(
KGD_PAY_QUERY_DL_KEY
).
and
(
args
);
}
}
...
...
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