mirror of
https://github.com/apache/rocketmq.git
synced 2026-08-30 18:10:44 +08:00
* Fix incorrect indentation issue
This commit is contained in:
@@ -231,7 +231,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement
|
||||
msgInner.setPropertiesString(MessageDecoder.messageProperties2String(msgExt.getProperties()));
|
||||
|
||||
CompletableFuture<PutMessageResult> putMessageResult = this.brokerController.getMessageStore().asyncPutMessage(msgInner);
|
||||
return putMessageResult.thenApply((r) -> {
|
||||
return putMessageResult.thenApply(r -> {
|
||||
if (r != null) {
|
||||
switch (r.getPutMessageStatus()) {
|
||||
case PUT_OK:
|
||||
@@ -337,7 +337,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement
|
||||
SendMessageContext sendMessageContext,
|
||||
ChannelHandlerContext ctx,
|
||||
int queueIdInt) {
|
||||
return putMessageResult.thenApply((r) ->
|
||||
return putMessageResult.thenApply(r ->
|
||||
handlePutMessageResult(r, response, request, msgInner, responseHeader, sendMessageContext, ctx, queueIdInt)
|
||||
);
|
||||
}
|
||||
|
||||
+1
-1
@@ -85,7 +85,7 @@ public class PullConsumerWithNamespace {
|
||||
return;
|
||||
}
|
||||
pullResult.getMsgFoundList().forEach(
|
||||
(msg) -> System.out.printf("Topic is:%s, msgId is:%s%n", msg.getTopic(), msg.getMsgId()));
|
||||
msg -> System.out.printf("Topic is:%s, msgId is:%s%n", msg.getTopic(), msg.getMsgId()));
|
||||
}
|
||||
|
||||
private static void putMessageQueueOffset(MessageQueue mq, long offset) {
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ public class PushConsumerWithNamespace {
|
||||
defaultMQPushConsumer.setNamesrvAddr(DEFAULT_NAMESRVADDR);
|
||||
defaultMQPushConsumer.subscribe(TOPIC, "*");
|
||||
defaultMQPushConsumer.registerMessageListener((MessageListenerConcurrently) (msgs, context) -> {
|
||||
msgs.forEach((msg) -> System.out.printf("Msg topic is:%s, MsgId is:%s, reconsumeTimes is:%s%n", msg.getTopic(), msg.getMsgId(), msg.getReconsumeTimes()));
|
||||
msgs.forEach(msg -> System.out.printf("Msg topic is:%s, MsgId is:%s, reconsumeTimes is:%s%n", msg.getTopic(), msg.getMsgId(), msg.getReconsumeTimes()));
|
||||
return ConsumeConcurrentlyStatus.CONSUME_SUCCESS;
|
||||
});
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
<maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version>
|
||||
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
|
||||
<maven-help-plugin.version>2.2</maven-help-plugin.version>
|
||||
<maven-checkstyle-plugin.version>2.17</maven-checkstyle-plugin.version>
|
||||
<maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version>
|
||||
<apache-rat-plugin.version>0.12</apache-rat-plugin.version>
|
||||
<maven-resources-plugin.version>3.0.2</maven-resources-plugin.version>
|
||||
<coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version>
|
||||
|
||||
@@ -465,7 +465,7 @@ public class DefaultMessageStore implements MessageStore {
|
||||
long beginTime = this.getSystemClock().now();
|
||||
CompletableFuture<PutMessageResult> putResultFuture = this.commitLog.asyncPutMessage(msg);
|
||||
|
||||
putResultFuture.thenAccept((result) -> {
|
||||
putResultFuture.thenAccept(result -> {
|
||||
long elapsedTime = this.getSystemClock().now() - beginTime;
|
||||
if (elapsedTime > 500) {
|
||||
log.warn("putMessage not in lock elapsed time(ms)={}, bodyLength={}", elapsedTime, msg.getBody().length);
|
||||
@@ -493,7 +493,7 @@ public class DefaultMessageStore implements MessageStore {
|
||||
long beginTime = this.getSystemClock().now();
|
||||
CompletableFuture<PutMessageResult> resultFuture = this.commitLog.asyncPutMessages(messageExtBatch);
|
||||
|
||||
resultFuture.thenAccept((result) -> {
|
||||
resultFuture.thenAccept(result -> {
|
||||
long elapsedTime = this.getSystemClock().now() - beginTime;
|
||||
if (elapsedTime > 500) {
|
||||
log.warn("not in lock elapsed time(ms)={}, bodyLength={}", elapsedTime, messageExtBatch.getBody().length);
|
||||
|
||||
Reference in New Issue
Block a user