Jashinck commented on code in PR #110:
URL: 
https://github.com/apache/rocketmq-eventbridge/pull/110#discussion_r1205178953


##########
adapter/runtime/src/main/java/org/apache/rocketmq/eventbridge/adapter/runtime/boot/EventTargetTrigger.java:
##########
@@ -45,42 +48,95 @@ public class EventTargetTrigger extends ServiceThread {
     private final CirculatorContext circulatorContext;
     private final OffsetManager offsetManager;
     private final ErrorHandler errorHandler;
-    private volatile Integer batchSize = 100;
+    private final AbsRateEstimator absRateEstimator;
 
     public EventTargetTrigger(CirculatorContext circulatorContext, 
OffsetManager offsetManager,
-                              ErrorHandler errorHandler) {
+                              ErrorHandler errorHandler, AbsRateEstimator 
absRateEstimator) {
         this.circulatorContext = circulatorContext;
         this.offsetManager = offsetManager;
         this.errorHandler = errorHandler;
+        this.absRateEstimator = absRateEstimator;
     }
 
     @Override
     public void run() {
         while (!stopped) {
-            Map<String, List<ConnectRecord>> targetRecordMap = 
circulatorContext.takeTargetRecords(batchSize);
-            if (MapUtils.isEmpty(targetRecordMap)) {
+            // 获取transform完成的runnerName进行推送
+            String runnerName = circulatorContext.takeTargetRunnerName();

Review Comment:
   同上



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to