Package org.apache.beam.sdk.fn.data
Class BeamFnDataGrpcMultiplexer
- java.lang.Object
-
- org.apache.beam.sdk.fn.data.BeamFnDataGrpcMultiplexer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
@Deprecated public class BeamFnDataGrpcMultiplexer extends java.lang.Object implements java.lang.AutoCloseableDeprecated.Migrate toBeamFnDataGrpcMultiplexer2.A gRPC multiplexer for a specificEndpoints.ApiServiceDescriptor.Multiplexes data for inbound consumers based upon their individual
org.apache.beam.model.fnexecution.v1.BeamFnApi.Targets.Multiplexing inbound and outbound streams is as thread safe as the consumers of those streams. For inbound streams, this is as thread safe as the inbound observers. For outbound streams, this is as thread safe as the underlying stream observer.
TODO: Add support for multiplexing over multiple outbound observers by stickying the output location with a specific outbound observer.
-
-
Constructor Summary
Constructors Constructor Description BeamFnDataGrpcMultiplexer(@Nullable org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor, OutboundObserverFactory outboundObserverFactory, OutboundObserverFactory.BasicFactory<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements,org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements> baseOutboundObserverFactory)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements>getInboundObserver()Deprecated.org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements>getOutboundObserver()Deprecated.<T> voidregisterConsumer(LogicalEndpoint inputLocation, java.util.function.BiConsumer<org.apache.beam.vendor.grpc.v1p48p1.com.google.protobuf.ByteString,java.lang.Boolean> bytesReceiver)Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
BeamFnDataGrpcMultiplexer
public BeamFnDataGrpcMultiplexer(@Nullable org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor, OutboundObserverFactory outboundObserverFactory, OutboundObserverFactory.BasicFactory<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements,org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements> baseOutboundObserverFactory)Deprecated.
-
-
Method Detail
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
getInboundObserver
public org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements> getInboundObserver()
Deprecated.
-
getOutboundObserver
public org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements> getOutboundObserver()
Deprecated.
-
registerConsumer
public <T> void registerConsumer(LogicalEndpoint inputLocation, java.util.function.BiConsumer<org.apache.beam.vendor.grpc.v1p48p1.com.google.protobuf.ByteString,java.lang.Boolean> bytesReceiver)
Deprecated.
-
close
public void close()
Deprecated.- Specified by:
closein interfacejava.lang.AutoCloseable
-
-