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
4f400fb5
Commit
4f400fb5
authored
Jul 07, 2020
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQL层级处理的支持
parent
aaef00ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
2 deletions
+35
-2
QueueVo.java
yzg-util-mq/src/main/java/com/yanzuoguang/mq/vo/QueueVo.java
+35
-2
No files found.
yzg-util-mq/src/main/java/com/yanzuoguang/mq/vo/QueueVo.java
View file @
4f400fb5
...
...
@@ -9,6 +9,7 @@ import com.yanzuoguang.util.vo.InitDao;
/**
* 创建队列
*
* @author 颜佐光
*/
@TableAnnotation
(
"Queue_Queue"
)
...
...
@@ -87,7 +88,7 @@ public class QueueVo extends BaseVo implements InitDao {
/**
* 构造函数
*/
public
QueueVo
(){
public
QueueVo
()
{
}
/**
...
...
@@ -104,6 +105,18 @@ public class QueueVo extends BaseVo implements InitDao {
this
.
routeKey
=
routeKey
;
}
/**
* 构造函数,用于创建延迟队列。</p>
* 会创建queueName、exchangeName并且通过routeKey绑定。
*
* @param queueName 队列名称,交换器名称,路由键
*/
public
QueueVo
(
String
queueName
)
{
this
.
queueName
=
queueName
;
this
.
exchangeName
=
queueName
;
this
.
routeKey
=
queueName
;
}
/**
* 构造函数,用于创建延迟队列。</p>
* 创建 queueName、exchangeName 并且通过 routeKey 绑定, 创建 dedQueueName、dedExchangeName 并且通过 dedRouteKey 绑定,
...
...
@@ -127,6 +140,26 @@ public class QueueVo extends BaseVo implements InitDao {
this
.
dedRouteKey
=
dedRouteKey
;
}
/**
* 构造函数,用于创建延迟队列。</p>
* 创建 queueName、exchangeName 并且通过 routeKey 绑定, 创建 dedQueueName、dedExchangeName 并且通过 dedRouteKey 绑定,
* 将 queueName 的死信队列设置为 dedExchangeName 和 dedRouteKey .
*
* @param queueName 队列名称,路由键,交换器名称
* @param dedTime 死信时间
* @param dedQueueName 死信交换器名称,死信交换队列名称,死信路由键
*/
public
QueueVo
(
String
queueName
,
long
dedTime
,
String
dedQueueName
)
{
this
.
queueName
=
queueName
;
this
.
exchangeName
=
queueName
;
this
.
routeKey
=
queueName
;
this
.
dedTime
=
dedTime
;
this
.
dedExchangeName
=
dedQueueName
;
this
.
dedQueueName
=
dedQueueName
;
this
.
dedRouteKey
=
dedQueueName
;
}
public
String
getQueueId
()
{
return
queueId
;
}
...
...
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