You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/04/27 00:25:58 UTC

[GitHub] [pulsar] srkukarni commented on a change in pull request #4127: [Issue#4110] [component/functions] Adding getActualMessage() method

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:
users@infra.apache.org


With regards,
Apache Git Services