类 CursorManagementFunction

  • 所有已实现的接口:
    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.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.lang.String process​(java.lang.String input, org.apache.pulsar.functions.api.Context context)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • CursorManagementFunction

        public CursorManagementFunction()
    • 方法详细资料

      • process

        public java.lang.String process​(java.lang.String input,
                                        org.apache.pulsar.functions.api.Context context)
                                 throws java.lang.Exception
        指定者:
        process 在接口中 org.apache.pulsar.functions.api.Function<java.lang.String,​java.lang.String>
        抛出:
        java.lang.Exception