Package org.apache.pulsar.functions.api
Interface StateStore
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Subinterfaces:
ByteBufferStateStore,CounterStateStore
@Public @Evolving public interface StateStore extends java.lang.AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()java.lang.Stringfqsn()The fully qualified state store name.voidinit(StateStoreContext ctx)Initialize the state store.java.lang.Stringname()The name of this store.java.lang.Stringnamespace()The namespace of this store.java.lang.Stringtenant()The tenant of this store.
-
-
-
Method Detail
-
tenant
java.lang.String tenant()
The tenant of this store.- Returns:
- the state store tenant.
-
namespace
java.lang.String namespace()
The namespace of this store.- Returns:
- the state store namespace.
-
name
java.lang.String name()
The name of this store.- Returns:
- the state store name.
-
fqsn
java.lang.String fqsn()
The fully qualified state store name.- Returns:
- the fully qualified state store name.
-
init
void init(StateStoreContext ctx)
Initialize the state store.- Parameters:
ctx-
-
close
void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-