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 void
close()
java.lang.String
fqsn()
The fully qualified state store name.void
init(StateStoreContext ctx)
Initialize the state store.java.lang.String
name()
The name of this store.java.lang.String
namespace()
The namespace of this store.java.lang.String
tenant()
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:
close
in interfacejava.lang.AutoCloseable
-
-