mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-24 16:04:00 +08:00
Merge pull request #3033 from zyh-future/zyh_asuncproducer_doc_fix
Looking at the Chinese document, I found that the subtraction operati…
This commit is contained in:
@@ -120,13 +120,15 @@ public class AsyncProducer {
|
||||
producer.send(msg, new SendCallback() {
|
||||
@Override
|
||||
public void onSuccess(SendResult sendResult) {
|
||||
countDownLatch.countDown();
|
||||
System.out.printf("%-10d OK %s %n", index,
|
||||
sendResult.getMsgId());
|
||||
}
|
||||
@Override
|
||||
public void onException(Throwable e) {
|
||||
System.out.printf("%-10d Exception %s %n", index, e);
|
||||
e.printStackTrace();
|
||||
countDownLatch.countDown();
|
||||
System.out.printf("%-10d Exception %s %n", index, e);
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user