Interface StateRequestHandler
-
- All Known Implementing Classes:
StateExecutionController
@Internal public interface StateRequestHandlerThe handler which can processStateRequest.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <IN,OUT>
org.apache.flink.core.asyncprocessing.InternalAsyncFuture<OUT>handleRequest(org.apache.flink.api.common.state.v2.State state, StateRequestType type, IN payload)Submit aStateRequestto this StateRequestHandler.<IN,OUT>
OUThandleRequestSync(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 Detail
-
handleRequest
<IN,OUT> org.apache.flink.core.asyncprocessing.InternalAsyncFuture<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
<N> void setCurrentNamespaceForState(@Nonnull InternalPartitionedState<N> state, N namespace)Set current namespace for a state. SeeInternalPartitionedState.setCurrentNamespace(Object).
-
-