@Internal public interface AsyncKeyedStateBackend extends org.apache.flink.util.Disposable, Closeable
| Modifier and Type | Method and Description |
|---|---|
<SV,S extends org.apache.flink.api.common.state.v2.State> |
createState(StateDescriptor<SV> stateDesc)
Creates and returns a new state.
|
StateExecutor |
createStateExecutor()
Creates a
StateExecutor which supports to execute a batch of state requests
asynchronously. |
void |
dispose() |
void |
setup(StateRequestHandler stateRequestHandler)
Initializes with some contexts.
|
void setup(@Nonnull StateRequestHandler stateRequestHandler)
stateRequestHandler - which handles state request.@Nonnull <SV,S extends org.apache.flink.api.common.state.v2.State> S createState(@Nonnull StateDescriptor<SV> stateDesc) throws Exception
SV - The type of the stored state value.S - The type of the public API state.stateDesc - The StateDescriptor that contains the name of the state.Exception - Exceptions may occur during initialization of the state.@Nonnull StateExecutor createStateExecutor()
StateExecutor which supports to execute a batch of state requests
asynchronously.
Notice that the AsyncKeyedStateBackend is responsible for shutting down the
StateExecutors created by itself when they are no longer in use.
StateExecutor which supports to execute a batch of state requests
asynchronously.void dispose()
dispose in interface org.apache.flink.util.DisposableCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.