mgodave opened a new pull request #1551: Json schema codec
URL: https://github.com/apache/incubator-pulsar/pull/1551
 
 
   Add a sample/usable schema implementation
   
   ```        
          Consumer<JsonEncodedPojo> consumer = pulsarClient
               .newConsumer(JSONSchema.of(JsonEncodedPojo.class))
               .topic("persistent://my-property/use/my-ns/my-topic1")
               .subscriptionName("my-subscriber-name")
               .subscribe();
   
           Producer<JsonEncodedPojo> producer = pulsarClient
               .newProducer(JSONSchema.of(JsonEncodedPojo.class))
               .topic("persistent://my-property/use/my-ns/my-topic1")
               .create();
   
   ```

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


With regards,
Apache Git Services

Reply via email to