Class 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 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.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.beam.vendor.grpc.v1p48p1.io.grpc.BindableService

        bindService
    • Method Detail

      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface org.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 class org.apache.beam.model.fnexecution.v1.BeamFnStateGrpc.BeamFnStateImplBase