类 InstanceStateManager

java.lang.Object
org.apache.pulsar.functions.instance.state.InstanceStateManager
所有已实现的接口:
AutoCloseable, StateManager

public class InstanceStateManager extends Object implements StateManager
The state manager for managing state stores for a running function instance.
  • 构造器详细资料

    • InstanceStateManager

      public InstanceStateManager()
  • 方法详细资料

    • registerStore

      public void registerStore(org.apache.pulsar.functions.api.StateStore store)
      从接口复制的说明: StateManager
      Register the state store.
      指定者:
      registerStore 在接口中 StateManager
      参数:
      store - the state store to register.
    • getStore

      public org.apache.pulsar.functions.api.StateStore getStore(String tenant, String namespace, String name)
      从接口复制的说明: StateManager
      Get the state store with the given name.
      指定者:
      getStore 在接口中 StateManager
      参数:
      tenant - the state store tenant.
      namespace - the state store namespace.
      name - the state store name.
      返回:
      the state store with the given name.
    • close

      public void close()
      指定者:
      close 在接口中 AutoCloseable
      指定者:
      close 在接口中 StateManager