类 BKStateStoreProviderImpl
java.lang.Object
org.apache.pulsar.functions.instance.state.BKStateStoreProviderImpl
- 所有已实现的接口:
AutoCloseable,StateStoreProvider
The state store provider that provides bookkeeper table backed state stores.
-
字段概要
从接口继承的字段 org.apache.pulsar.functions.instance.state.StateStoreProvider
NULL, STATE_STORAGE_SERVICE_URL -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclose()<S extends org.apache.pulsar.functions.api.StateStore>
SgetStateStore(String tenant, String namespace, String name) Get the state store with the provided store name.voidinit(Map<String, Object> config, org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails) Initialize the state store provider.
-
构造器详细资料
-
BKStateStoreProviderImpl
public BKStateStoreProviderImpl()
-
-
方法详细资料
-
init
public void init(Map<String, Object> config, org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails) throws Exception从接口复制的说明:StateStoreProviderInitialize 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 从接口复制的说明:StateStoreProviderGet 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 storenamespace- the namespace that owns this state storename- 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
-