接口 StateManager

所有超级接口:
AutoCloseable
所有已知实现类:
InstanceStateManager

public interface StateManager extends AutoCloseable
A state manager that manages multiple state stores.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
     
    org.apache.pulsar.functions.api.StateStore
    getStore(String tenant, String namespace, String name)
    Get the state store with the given name.
    void
    registerStore(org.apache.pulsar.functions.api.StateStore store)
    Register the state store.
  • 方法详细资料

    • registerStore

      void registerStore(org.apache.pulsar.functions.api.StateStore store)
      Register the state store.
      参数:
      store - the state store to register.
    • getStore

      org.apache.pulsar.functions.api.StateStore getStore(String tenant, String namespace, String name)
      Get the state store with the given name.
      参数:
      tenant - the state store tenant.
      namespace - the state store namespace.
      name - the state store name.
      返回:
      the state store with the given name.
    • close

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