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,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.
-
-
Constructor Summary
Constructors Constructor Description GenericObjectFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Voidprocess(org.apache.pulsar.client.api.schema.GenericObject genericObject, org.apache.pulsar.functions.api.Context context)
-
-
-
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:
processin interfaceorg.apache.pulsar.functions.api.Function<org.apache.pulsar.client.api.schema.GenericObject,java.lang.Void>- Throws:
java.lang.Exception
-
-