Class CursorManagementFunction
- java.lang.Object
-
- org.apache.pulsar.functions.api.examples.CursorManagementFunction
-
- All Implemented Interfaces:
org.apache.pulsar.functions.api.Function<java.lang.String,java.lang.String>
public class CursorManagementFunction extends java.lang.Object implements org.apache.pulsar.functions.api.Function<java.lang.String,java.lang.String>A function that demonstrates how to use pulsar admin client exposed from Function Context. In this particular example, for every input message, the function do reset cursor of current function's subscription to a specified timestamp.
-
-
Constructor Summary
Constructors Constructor Description CursorManagementFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringprocess(java.lang.String input, org.apache.pulsar.functions.api.Context context)
-