Interface StateManager
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
InstanceStateManager
public interface StateManager extends java.lang.AutoCloseableA state manager that manages multiple state stores.
-
-
Method Summary
All Methods Instance Methods Abstract 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
void registerStore(org.apache.pulsar.functions.api.StateStore store)
Register the state store.- Parameters:
store- the state store to register.
-
getStore
org.apache.pulsar.functions.api.StateStore getStore(java.lang.String tenant, java.lang.String namespace, java.lang.String name)Get the state store with the given name.- 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
void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-