duhengforever commented on a change in pull request #358: [ISSUE #292] Add 
support of transactional message feature 
URL: https://github.com/apache/rocketmq/pull/358#discussion_r201390098
 
 

 ##########
 File path: 
example/src/main/java/org/apache/rocketmq/example/benchmark/TransactionProducer.java
 ##########
 @@ -153,35 +150,37 @@ private static Message buildMessage(final int 
messageSize) throws UnsupportedEnc
     }
 }
 
-class TransactionExecuterBImpl implements LocalTransactionExecuter {
-
-    private boolean ischeck;
-
-    public TransactionExecuterBImpl(boolean ischeck) {
-        this.ischeck = ischeck;
-    }
-
-    @Override
-    public LocalTransactionState executeLocalTransactionBranch(final Message 
msg, final Object arg) {
-        if (ischeck) {
-            return LocalTransactionState.UNKNOW;
-        }
-        return LocalTransactionState.COMMIT_MESSAGE;
-    }
-}
-
-class TransactionCheckListenerBImpl implements TransactionCheckListener {
+//class TransactionExecuterBImpl implements LocalTransactionExecuter {
+//
+//    private boolean ischeckLocal;
+//
+//    public TransactionExecuterBImpl(boolean ischeck) {
+//        this.ischeck = ischeck;
+//    }
+//
+//    @Override
+//    public LocalTransactionState executeLocalTransactionBranch(final Message 
msg, final Object arg) {
+//        if (ischeck) {
+//            return LocalTransactionState.UNKNOW;
+//        }
+//        return LocalTransactionState.COMMIT_MESSAGE;
+//    }
+//}
+
+class TransactionListenerImpl implements TransactionListener {
     private boolean ischeckffalse;
     private StatsBenchmarkTProducer statsBenchmarkTProducer;
+    private boolean ischeckLocal;
 
-    public TransactionCheckListenerBImpl(boolean ischeckffalse,
-        StatsBenchmarkTProducer statsBenchmarkTProducer) {
+    public TransactionListenerImpl(boolean ischeckffalse, boolean isCheckLocal,
 
 Review comment:
   Sorry, the last commit did not modify the original code, including variable 
naming, but the latest commit has been changed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to