public class BKStateStoreProviderImpl extends Object implements StateStoreProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
STATE_STORAGE_SERVICE_URL |
NULL| Constructor and Description |
|---|
BKStateStoreProviderImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<S extends StateStore> |
getStateStore(String tenant,
String namespace,
String name)
Get the state store with the provided store name.
|
void |
init(Map<String,Object> config,
org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails)
Initialize the state store provider.
|
public static final String STATE_STORAGE_SERVICE_URL
public void init(Map<String,Object> config, org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails) throws Exception
StateStoreProviderinit in interface StateStoreProviderconfig - the config to init the state store provider.functionDetails - the function details.Exception - when failed to init the state store provider.public <S extends StateStore> S getStateStore(String tenant, String namespace, String name) throws Exception
StateStoreProvidergetStateStore in interface StateStoreProviderS - the type of interface of the store to returntenant - the tenant that owns this state storenamespace - the namespace that owns this state storename - the state store nameClassCastException - if the return type isn't a type
or interface of the actual returned store.Exceptionpublic void close()
close in interface AutoCloseableclose in interface StateStoreProviderCopyright © 2017–2021 Apache Software Foundation. All rights reserved.