Class InstanceStateManager
- java.lang.Object
-
- org.apache.pulsar.functions.instance.state.InstanceStateManager
-
- All Implemented Interfaces:
java.lang.AutoCloseable,StateManager
public class InstanceStateManager extends java.lang.Object implements StateManager
The state manager for managing state stores for a running function instance.
-
-
Constructor Summary
Constructors Constructor Description InstanceStateManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.apache.pulsar.functions.api.StateStoregetStore(java.lang.String tenant, java.lang.String namespace, java.lang.String name)Get the state store with the given name.voidregisterStore(org.apache.pulsar.functions.api.StateStore store)Register the state store.
-
-
-
Method Detail
-
registerStore
public void registerStore(org.apache.pulsar.functions.api.StateStore store)
Description copied from interface:StateManagerRegister the state store.- Specified by:
registerStorein interfaceStateManager- Parameters:
store- the state store to register.
-
getStore
public org.apache.pulsar.functions.api.StateStore getStore(java.lang.String tenant, java.lang.String namespace, java.lang.String name)Description copied from interface:StateManagerGet the state store with the given name.- Specified by:
getStorein interfaceStateManager- Parameters:
tenant- the state store tenant.namespace- the state store namespace.name- the state store name.- Returns:
- the state store with the given name.
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceStateManager
-
-