public class BeamFnStateGrpcClientCache
extends java.lang.Object
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 and 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) |
| Modifier and Type | Method and 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. |
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)
public BeamFnStateClient forApiServiceDescriptor(org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor) throws java.io.IOException
BeamFnStateClient depending on whether the passed in
Endpoints.ApiServiceDescriptor currently has a BeamFnStateClient bound to the same
channel.java.io.IOException