You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/12/03 19:25:56 UTC
[GitHub] [rocketmq] mrhbj opened a new issue #3576: In the case of high concurrency,ThreadLocalRandom is better than Random
mrhbj opened a new issue #3576:
URL: https://github.com/apache/rocketmq/issues/3576
DefaultMQProducerImpl .java
code1:
`public class DefaultMQProducerImpl implements MQProducerInner {
private final InternalLogger log = ClientLogger.getLog();
private final Random random = new Random();`
code2:
private SendResult sendDefaultImpl(
Message msg,
final CommunicationMode communicationMode,
final SendCallback sendCallback,
final long timeout
) throws MQClientException, RemotingException, MQBrokerException, InterruptedException {
this.makeSureStateOK();
Validators.checkMessage(msg, this.defaultMQProducer);
final long invokeID = random.nextLong();
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] mrhbj commented on issue #3576: In the case of high concurrency,ThreadLocalRandom is better than Random
Posted by GitBox <gi...@apache.org>.
mrhbj commented on issue #3576:
URL: https://github.com/apache/rocketmq/issues/3576#issuecomment-985774675
my optimized push pr #3577
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] mrhbj edited a comment on issue #3576: In the case of high concurrency,ThreadLocalRandom is better than Random
Posted by GitBox <gi...@apache.org>.
mrhbj edited a comment on issue #3576:
URL: https://github.com/apache/rocketmq/issues/3576#issuecomment-985774675
my optimized push pr #3578
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] mrhbj closed issue #3576: In the case of high concurrency,ThreadLocalRandom is better than Random
Posted by GitBox <gi...@apache.org>.
mrhbj closed issue #3576:
URL: https://github.com/apache/rocketmq/issues/3576
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org