srkukarni commented on a change in pull request #4127: [Issue#4110] 
[component/functions] Adding getActualMessage() method
URL: https://github.com/apache/pulsar/pull/4127#discussion_r279135459
 
 

 ##########
 File path: 
pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/ContextImpl.java
 ##########
 @@ -160,6 +161,11 @@ public void setCurrentMessageContext(Record<?> record) {
         this.record = record;
     }
 
+    @Override
+    public Object getCurrentMessage() {
+        return ((PulsarRecord<?>) record).getActualMessage();
 
 Review comment:
   this should just be record.getActualMessage?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to