Interface StateRequestHandler
- All Known Implementing Classes:
AsyncExecutionController
@Internal
public interface StateRequestHandler
The handler which can process
StateRequest.-
Method Summary
Modifier and TypeMethodDescription<IN,OUT> org.apache.flink.core.state.InternalStateFuture<OUT> handleRequest(org.apache.flink.api.common.state.v2.State state, StateRequestType type, IN payload) Submit aStateRequestto this StateRequestHandler.<IN,OUT> OUT handleRequestSync(org.apache.flink.api.common.state.v2.State state, StateRequestType type, IN payload) Submit aStateRequestto this StateRequestHandler, and wait for the response synchronously.<N> voidsetCurrentNamespaceForState(InternalPartitionedState<N> state, N namespace) Set current namespace for a state.
-
Method Details
-
handleRequest
<IN,OUT> org.apache.flink.core.state.InternalStateFuture<OUT> handleRequest(@Nullable org.apache.flink.api.common.state.v2.State state, StateRequestType type, @Nullable IN payload) Submit aStateRequestto this StateRequestHandler.- Parameters:
state- the state to request. Could benullif the type isStateRequestType.SYNC_POINT.type- the type of this request.payload- the payload input for this request.- Returns:
- the state future.
-
handleRequestSync
<IN,OUT> OUT handleRequestSync(org.apache.flink.api.common.state.v2.State state, StateRequestType type, @Nullable IN payload) Submit aStateRequestto this StateRequestHandler, and wait for the response synchronously.- Parameters:
state- the state to request.type- the type of this request.payload- the payload input for this request.- Returns:
- the state future.
-
setCurrentNamespaceForState
Set current namespace for a state. SeeInternalPartitionedState.setCurrentNamespace(Object).
-