Class BeamFnStateGrpcClientCache


  • public class BeamFnStateGrpcClientCache
    extends java.lang.Object
    A cache of BeamFnStateClients which handle Beam Fn State requests using gRPC.

    TODO: Add the ability to close which cancels any pending and stops any future requests.

    • Constructor Summary

      Constructors 
      Constructor Description
      BeamFnStateGrpcClientCache​(org.apache.beam.sdk.fn.IdGenerator idGenerator, org.apache.beam.sdk.fn.channel.ManagedChannelFactory channelFactory, org.apache.beam.sdk.fn.stream.OutboundObserverFactory outboundObserverFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BeamFnStateClient forApiServiceDescriptor​(org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor)
      Creates or returns an existing BeamFnStateClient depending on whether the passed in Endpoints.ApiServiceDescriptor currently has a BeamFnStateClient bound to the same channel.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BeamFnStateGrpcClientCache

        public BeamFnStateGrpcClientCache​(org.apache.beam.sdk.fn.IdGenerator idGenerator,
                                          org.apache.beam.sdk.fn.channel.ManagedChannelFactory channelFactory,
                                          org.apache.beam.sdk.fn.stream.OutboundObserverFactory outboundObserverFactory)
    • Method Detail

      • forApiServiceDescriptor

        public BeamFnStateClient forApiServiceDescriptor​(org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor)
                                                  throws java.io.IOException
        Creates or returns an existing BeamFnStateClient depending on whether the passed in Endpoints.ApiServiceDescriptor currently has a BeamFnStateClient bound to the same channel.
        Throws:
        java.io.IOException