Class OutboundObserverFactory


  • public abstract class OutboundObserverFactory
    extends java.lang.Object
    Creates factories which determine an underlying StreamObserver implementation to use in to interact with fn execution APIs.
    • Constructor Detail

      • OutboundObserverFactory

        public OutboundObserverFactory()
    • Method Detail

      • clientBuffered

        public static OutboundObserverFactory clientBuffered​(java.util.concurrent.ExecutorService executorService)
        Create a buffering OutboundObserverFactory for client-side RPCs with the specified ExecutorService and the default buffer size. All StreamObservers created by this factory are thread safe.
      • clientBuffered

        public static OutboundObserverFactory clientBuffered​(java.util.concurrent.ExecutorService executorService,
                                                             int bufferSize)
        Create a buffering OutboundObserverFactory for client-side RPCs with the specified ExecutorService and buffer size. All StreamObservers created by this factory are thread safe.
      • clientDirect

        public static OutboundObserverFactory clientDirect()
        Create the default OutboundObserverFactory for client-side RPCs, which uses basic unbuffered flow control. All StreamObservers created by this factory are thread safe.
      • outboundObserverFor

        public abstract <ReqT,​RespT> org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<RespT> outboundObserverFor​(OutboundObserverFactory.BasicFactory<ReqT,​RespT> baseOutboundObserverFactory,
                                                                                                                                      org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<ReqT> inboundObserver)
        Creates an outbound observer for the given inbound observer by potentially inserting hooks into the inbound and outbound observers.
        Parameters:
        baseOutboundObserverFactory - A base function to create an outbound observer from an inbound observer.
        inboundObserver - The inbound observer.