Class GenericObjectFunction

java.lang.Object
org.apache.pulsar.tests.integration.functions.GenericObjectFunction
All Implemented Interfaces:
Function<org.apache.pulsar.client.api.schema.GenericObject,Void>

public class GenericObjectFunction extends Object implements Function<org.apache.pulsar.client.api.schema.GenericObject,Void>
This function processes any message with any schema, and outputs the message with the same schema to another topic.
  • Constructor Details

    • GenericObjectFunction

      public GenericObjectFunction()
  • Method Details

    • process

      public Void process(org.apache.pulsar.client.api.schema.GenericObject genericObject, Context context) throws Exception
      Specified by:
      process in interface Function<org.apache.pulsar.client.api.schema.GenericObject,Void>
      Throws:
      Exception