public class GrpcStateService extends org.apache.beam.model.fnexecution.v1.BeamFnStateGrpc.BeamFnStateImplBase implements StateDelegator, org.apache.beam.sdk.fn.server.FnService
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static GrpcStateService |
create()
Create a new
GrpcStateService. |
StateDelegator.Registration |
registerForProcessBundleInstructionId(java.lang.String processBundleInstructionId,
StateRequestHandler handler)
Registers the supplied handler for the given process bundle instruction id for all
BeamFnApi.StateRequests with a matching id. |
org.apache.beam.vendor.grpc.v1p43p2.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest> |
state(org.apache.beam.vendor.grpc.v1p43p2.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse> responseObserver) |
bindServicepublic static GrpcStateService create()
GrpcStateService.public void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseableclose in interface org.apache.beam.sdk.fn.server.FnServicejava.lang.Exceptionpublic org.apache.beam.vendor.grpc.v1p43p2.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest> state(org.apache.beam.vendor.grpc.v1p43p2.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse> responseObserver)
state in class org.apache.beam.model.fnexecution.v1.BeamFnStateGrpc.BeamFnStateImplBasepublic StateDelegator.Registration registerForProcessBundleInstructionId(java.lang.String processBundleInstructionId, StateRequestHandler handler)
StateDelegatorBeamFnApi.StateRequests with a matching id. A handle is returned which allows one to deregister from
this StateDelegator.registerForProcessBundleInstructionId in interface StateDelegator