Package org.apache.beam.fn.harness.state
Class BeamFnStateGrpcClientCache
- java.lang.Object
-
- org.apache.beam.fn.harness.state.BeamFnStateGrpcClientCache
-
public class BeamFnStateGrpcClientCache extends java.lang.ObjectA cache ofBeamFnStateClients 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 BeamFnStateClientforApiServiceDescriptor(org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor)Creates or returns an existingBeamFnStateClientdepending on whether the passed inEndpoints.ApiServiceDescriptorcurrently has aBeamFnStateClientbound to the same channel.
-
-
-
Method Detail
-
forApiServiceDescriptor
public BeamFnStateClient forApiServiceDescriptor(org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor) throws java.io.IOException
Creates or returns an existingBeamFnStateClientdepending on whether the passed inEndpoints.ApiServiceDescriptorcurrently has aBeamFnStateClientbound to the same channel.- Throws:
java.io.IOException
-
-