Class TypedMessageBuilderPublish

java.lang.Object
org.apache.pulsar.functions.api.examples.TypedMessageBuilderPublish
All Implemented Interfaces:
org.apache.pulsar.functions.api.Function<String,Void>
Direct Known Subclasses:
InitializableFunction

public class TypedMessageBuilderPublish extends Object implements org.apache.pulsar.functions.api.Function<String,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.
  • Constructor Details

    • TypedMessageBuilderPublish

      public TypedMessageBuilderPublish()
  • Method Details

    • process

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