Class GrpcStateService
java.lang.Object
org.apache.beam.model.fnexecution.v1.BeamFnStateGrpc.BeamFnStateImplBase
org.apache.beam.runners.fnexecution.state.GrpcStateService
- All Implemented Interfaces:
- AutoCloseable,- org.apache.beam.model.fnexecution.v1.BeamFnStateGrpc.AsyncService,- StateDelegator,- FnService,- org.apache.beam.vendor.grpc.v1p69p0.io.grpc.BindableService
public class GrpcStateService
extends org.apache.beam.model.fnexecution.v1.BeamFnStateGrpc.BeamFnStateImplBase
implements StateDelegator, FnService
An implementation of the Beam Fn State service.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose().static GrpcStateServicecreate()Create a newGrpcStateService.registerForProcessBundleInstructionId(String processBundleInstructionId, StateRequestHandler handler) Registers the supplied handler for the given process bundle instruction id for allBeamFnApi.StateRequests with a matching id.org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest> state(org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse> responseObserver) Methods inherited from class org.apache.beam.model.fnexecution.v1.BeamFnStateGrpc.BeamFnStateImplBasebindServiceMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.beam.vendor.grpc.v1p69p0.io.grpc.BindableServicebindService
- 
Method Details- 
createCreate a newGrpcStateService.
- 
closeDescription copied from interface:FnService.There should be no more calls to any service method by the time a call to FnService.close()begins. Specifically, this means that aServerthat this service is bound to should have completed a call to theServer.shutdown()method, and all future incoming calls will be rejected.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- FnService
- Throws:
- Exception
 
- 
statepublic org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest> state(org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse> responseObserver) - Specified by:
- statein interface- org.apache.beam.model.fnexecution.v1.BeamFnStateGrpc.AsyncService
 
- 
registerForProcessBundleInstructionIdpublic StateDelegator.Registration registerForProcessBundleInstructionId(String processBundleInstructionId, StateRequestHandler handler) Description copied from interface:StateDelegatorRegisters the supplied handler for the given process bundle instruction id for allBeamFnApi.StateRequests with a matching id. A handle is returned which allows one to deregister from thisStateDelegator.- Specified by:
- registerForProcessBundleInstructionIdin interface- StateDelegator
 
 
-