Class GenericObjectFunction

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Void 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
    • Constructor Detail

      • GenericObjectFunction

        public GenericObjectFunction()
    • Method Detail

      • process

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