Class GrpcStateService
- java.lang.Object
-
- org.apache.beam.model.fnexecution.v1.BeamFnStateGrpc.BeamFnStateImplBase
-
- org.apache.beam.runners.fnexecution.state.GrpcStateService
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.apache.beam.model.fnexecution.v1.BeamFnStateGrpc.AsyncService,StateDelegator,org.apache.beam.sdk.fn.server.FnService,org.apache.beam.vendor.grpc.v1p69p0.io.grpc.BindableService
public class GrpcStateService extends org.apache.beam.model.fnexecution.v1.BeamFnStateGrpc.BeamFnStateImplBase implements StateDelegator, org.apache.beam.sdk.fn.server.FnService
An implementation of the Beam Fn State service.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static GrpcStateServicecreate()Create a newGrpcStateService.StateDelegator.RegistrationregisterForProcessBundleInstructionId(java.lang.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.BeamFnStateImplBase
bindService
-
-
-
-
Method Detail
-
create
public static GrpcStateService create()
Create a newGrpcStateService.
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceorg.apache.beam.sdk.fn.server.FnService- Throws:
java.lang.Exception
-
state
public 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 interfaceorg.apache.beam.model.fnexecution.v1.BeamFnStateGrpc.AsyncService
-
registerForProcessBundleInstructionId
public StateDelegator.Registration registerForProcessBundleInstructionId(java.lang.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 interfaceStateDelegator
-
-