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
,StateDelegator
,org.apache.beam.sdk.fn.server.FnService
,org.apache.beam.vendor.grpc.v1p48p1.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 void
close()
static GrpcStateService
create()
Create a newGrpcStateService
.StateDelegator.Registration
registerForProcessBundleInstructionId(java.lang.String processBundleInstructionId, StateRequestHandler handler)
Registers the supplied handler for the given process bundle instruction id for allBeamFnApi.StateRequest
s with a matching id.org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest>
state(org.apache.beam.vendor.grpc.v1p48p1.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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceorg.apache.beam.sdk.fn.server.FnService
- Throws:
java.lang.Exception
-
state
public org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest> state(org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse> responseObserver)
- Overrides:
state
in classorg.apache.beam.model.fnexecution.v1.BeamFnStateGrpc.BeamFnStateImplBase
-
registerForProcessBundleInstructionId
public StateDelegator.Registration registerForProcessBundleInstructionId(java.lang.String processBundleInstructionId, StateRequestHandler handler)
Description copied from interface:StateDelegator
Registers the supplied handler for the given process bundle instruction id for allBeamFnApi.StateRequest
s with a matching id. A handle is returned which allows one to deregister from thisStateDelegator
.- Specified by:
registerForProcessBundleInstructionId
in interfaceStateDelegator
-
-