Class InstanceIdAppenderFunction

java.lang.Object
org.apache.pulsar.functions.api.examples.InstanceIdAppenderFunction
All Implemented Interfaces:
org.apache.pulsar.functions.api.Function<String,String>

public class InstanceIdAppenderFunction extends Object implements org.apache.pulsar.functions.api.Function<String,String>
Function that appends the instance id to the payload message.
  • Constructor Details

    • InstanceIdAppenderFunction

      public InstanceIdAppenderFunction()
  • Method Details

    • process

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