public interface StateRequestHandler
StateRequests
.Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletionStage<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse.Builder> |
handle(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request)
Handle a
BeamFnApi.StateRequest asynchronously. |
static StateRequestHandler |
unsupported() |
java.util.concurrent.CompletionStage<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse.Builder> handle(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) throws java.lang.Exception
BeamFnApi.StateRequest
asynchronously.
The handler is allowed to complete the future within the callers thread if it can be completed without blocking. Otherwise the caller should delegate to another thread to perform any blocking work completing the future when able.
Throwing an error during handling will complete the handler result CompletionStage
exceptionally.
java.lang.Exception
static StateRequestHandler unsupported()