public class PulsarMetadataStateStoreProviderImpl extends Object implements StateStoreProvider
NULL, STATE_STORAGE_SERVICE_URL| Constructor and Description |
|---|
PulsarMetadataStateStoreProviderImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DefaultStateStore |
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 PulsarMetadataStateStoreProviderImpl()
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 DefaultStateStore getStateStore(String tenant, String namespace, String name) throws Exception
StateStoreProvidergetStateStore in interface StateStoreProvidertenant - 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.