Interface StateRequestHandler
-
- All Known Implementing Classes:
AsyncExecutionController
@Internal public interface StateRequestHandler
The handler which can processStateRequest
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <IN,OUT>
InternalStateFuture<OUT>handleRequest(State state, StateRequestType type, IN payload)
Submit aStateRequest
to this StateRequestHandler.<IN,OUT>
OUThandleRequestSync(State state, StateRequestType type, IN payload)
Submit aStateRequest
to this StateRequestHandler, and wait for the response synchronously.<N> void
setCurrentNamespaceForState(InternalPartitionedState<N> state, N namespace)
Set current namespace for a state.
-
-
-
Method Detail
-
handleRequest
<IN,OUT> InternalStateFuture<OUT> handleRequest(@Nullable State state, StateRequestType type, @Nullable IN payload)
Submit aStateRequest
to this StateRequestHandler.- Parameters:
state
- the state to request. Could benull
if 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(State state, StateRequestType type, @Nullable IN payload)
Submit aStateRequest
to 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)
.
-
-