Class GenericObjectFunction

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

public class GenericObjectFunction extends Object implements org.apache.pulsar.functions.api.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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    process(org.apache.pulsar.client.api.schema.GenericObject genericObject, 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

    Methods inherited from interface org.apache.pulsar.functions.api.Function

    close, initialize
  • Constructor Details

    • GenericObjectFunction

      public GenericObjectFunction()
  • Method Details

    • process

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