- All Implemented Interfaces:
org.apache.pulsar.functions.api.Function<String,Void>
public class PublishFunction
extends Object
implements org.apache.pulsar.functions.api.Function<String,Void>
Example function that uses the built in publish function in the context
to publish to a desired topic based on config.
-
Constructor Summary
Constructors
-
Method Summary
process(String input,
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
-
PublishFunction
public PublishFunction()
-
Method Details
-
process
public Void process(String input,
org.apache.pulsar.functions.api.Context context)
- Specified by:
process in interface org.apache.pulsar.functions.api.Function<String,Void>