Class InstanceStateManager
java.lang.Object
org.apache.pulsar.functions.instance.state.InstanceStateManager
- All Implemented Interfaces:
AutoCloseable,StateManager
The state manager for managing state stores for a running function instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Get the state store with the given name.voidregisterStore(StateStore store) Register the state store.
-
Constructor Details
-
InstanceStateManager
public InstanceStateManager()
-
-
Method Details
-
registerStore
Description copied from interface:StateManagerRegister the state store.- Specified by:
registerStorein interfaceStateManager- Parameters:
store- the state store to register.
-
getStore
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 interfaceAutoCloseable- Specified by:
closein interfaceStateManager
-