类 BKStateStoreProviderImpl

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

public class BKStateStoreProviderImpl extends Object implements StateStoreProvider
The state store provider that provides bookkeeper table backed state stores.
  • 构造器详细资料

    • BKStateStoreProviderImpl

      public BKStateStoreProviderImpl()
  • 方法详细资料

    • init

      public void init(Map<String,Object> config, org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails) throws Exception
      从接口复制的说明: StateStoreProvider
      Initialize the state store provider.
      指定者:
      init 在接口中 StateStoreProvider
      参数:
      config - the config to init the state store provider.
      functionDetails - the function details.
      抛出:
      Exception - when failed to init the state store provider.
    • getStateStore

      public <S extends org.apache.pulsar.functions.api.StateStore> S getStateStore(String tenant, String namespace, String name) throws Exception
      从接口复制的说明: StateStoreProvider
      Get the state store with the provided store name.
      指定者:
      getStateStore 在接口中 StateStoreProvider
      类型参数:
      S - the type of interface of the store to return
      参数:
      tenant - the tenant that owns this state store
      namespace - the namespace that owns this state store
      name - the state store name
      返回:
      the state store instance.
      抛出:
      ClassCastException - if the return type isn't a type or interface of the actual returned store.
      Exception
    • close

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