Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
武汉红喜
whatsmars
提交
5cc898ff
W
whatsmars
项目概览
武汉红喜
/
whatsmars
通知
3
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
whatsmars
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5cc898ff
编写于
10月 22, 2018
作者:
武汉红喜
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
去掉transaction相关类
上级
d6f8836f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
0 addition
and
100 deletion
+0
-100
whatsmars-mq/rocketmq-spring-boot-starter/src/main/java/org/apache/rocketmq/spring/starter/RocketMQConfigUtils.java
...g/apache/rocketmq/spring/starter/RocketMQConfigUtils.java
+0
-29
whatsmars-mq/rocketmq-spring-boot-starter/src/main/java/org/apache/rocketmq/spring/starter/annotation/RocketMQTransactionListener.java
...pring/starter/annotation/RocketMQTransactionListener.java
+0
-69
whatsmars-mq/rocketmq-spring-boot-starter/src/main/java/org/apache/rocketmq/spring/starter/core/RocketMQTemplate.java
...apache/rocketmq/spring/starter/core/RocketMQTemplate.java
+0
-2
未找到文件。
whatsmars-mq/rocketmq-spring-boot-starter/src/main/java/org/apache/rocketmq/spring/starter/RocketMQConfigUtils.java
已删除
100644 → 0
浏览文件 @
d6f8836f
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.rocketmq.spring.starter
;
public
class
RocketMQConfigUtils
{
/**
* The bean name of the internally managed RocketMQ transaction annotation processor.
*/
public
static
final
String
ROCKETMQ_TRANSACTION_ANNOTATION_PROCESSOR_BEAN_NAME
=
"org.springframework.rocketmq.spring.starter.internalRocketMQTransAnnotationProcessor"
;
public
static
final
String
ROCKETMQ_TRANSACTION_DEFAULT_GLOBAL_NAME
=
"rocketmq_transaction_default_global_name"
;
}
whatsmars-mq/rocketmq-spring-boot-starter/src/main/java/org/apache/rocketmq/spring/starter/annotation/RocketMQTransactionListener.java
已删除
100644 → 0
浏览文件 @
d6f8836f
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.rocketmq.spring.starter.annotation
;
import
org.apache.rocketmq.spring.starter.RocketMQConfigUtils
;
import
org.springframework.stereotype.Component
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* This annotation is used over a class which implements interface
* org.apache.rocketmq.client.producer.TransactionListener. The class implements
* two methods for process callback events after the txProducer sends a transactional message.
* <p>Note: The annotation is used only on RocketMQ client producer side, it can not be used
* on consumer side.
*/
@Target
({
ElementType
.
TYPE
,
ElementType
.
ANNOTATION_TYPE
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Documented
@Component
public
@interface
RocketMQTransactionListener
{
/**
* Declare the txProducerGroup that is used to relate callback event to the listener, rocketMQTemplate must send a
* transactional message with the declared txProducerGroup.
* <p>
* <p>It is suggested to use the default txProducerGroup if your system only needs to define a TransactionListener class.
*/
String
txProducerGroup
()
default
RocketMQConfigUtils
.
ROCKETMQ_TRANSACTION_DEFAULT_GLOBAL_NAME
;
/**
* Set ExecutorService params -- corePoolSize
*/
int
corePoolSize
()
default
1
;
/**
* Set ExecutorService params -- maximumPoolSize
*/
int
maximumPoolSize
()
default
1
;
/**
* Set ExecutorService params -- keepAliveTime
*/
long
keepAliveTime
()
default
1000
*
60
;
//60ms
/**
* Set ExecutorService params -- blockingQueueSize
*/
int
blockingQueueSize
()
default
2000
;
}
whatsmars-mq/rocketmq-spring-boot-starter/src/main/java/org/apache/rocketmq/spring/starter/core/RocketMQTemplate.java
浏览文件 @
5cc898ff
...
...
@@ -22,7 +22,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import
java.nio.charset.Charset
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.concurrent.ConcurrentHashMap
;
import
lombok.Getter
;
import
lombok.Setter
;
...
...
@@ -33,7 +32,6 @@ import org.apache.rocketmq.client.producer.SendCallback;
import
org.apache.rocketmq.client.producer.SendResult
;
import
org.apache.rocketmq.client.producer.selector.SelectMessageQueueByHash
;
import
org.apache.rocketmq.common.message.MessageConst
;
import
org.apache.rocketmq.spring.starter.RocketMQConfigUtils
;
import
org.springframework.beans.factory.DisposableBean
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.messaging.Message
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录