public interface BeamFnStateClient
BeamFnStateClient is able to forward state requests to a handler which returns a
corresponding response or error if completed unsuccessfully.| Modifier and Type | Method and Description |
|---|---|
void |
handle(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest.Builder requestBuilder,
java.util.concurrent.CompletableFuture<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse> response)
Consumes a state request populating a unique id returning a future to the response.
|
void handle(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest.Builder requestBuilder,
java.util.concurrent.CompletableFuture<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse> response)
requestBuilder - A partially completed state request. The id will be populated the client.response - A future containing a corresponding BeamFnApi.StateResponse for the supplied
request.