Class TypedMessageBuilderPublish

  • All Implemented Interfaces:
    org.apache.pulsar.functions.api.Function<java.lang.String,​java.lang.Void>

    public class TypedMessageBuilderPublish
    extends java.lang.Object
    implements org.apache.pulsar.functions.api.Function<java.lang.String,​java.lang.Void>
    Example function that uses the built in publish function in the context to publish to a desired topic based on config and setting various message configurations to be passed along.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Void process​(java.lang.String input, org.apache.pulsar.functions.api.Context context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TypedMessageBuilderPublish

        public TypedMessageBuilderPublish()
    • Method Detail

      • process

        public java.lang.Void process​(java.lang.String input,
                                      org.apache.pulsar.functions.api.Context context)
        Specified by:
        process in interface org.apache.pulsar.functions.api.Function<java.lang.String,​java.lang.Void>