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 Summary
Constructors
-
Method Summary
process(org.apache.pulsar.client.api.schema.GenericObject genericObject,
Context context)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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