public abstract class StreamObserverFactory
extends java.lang.Object
StreamObserver
implementation
to use in to interact with fn execution APIs.Modifier and Type | Class and Description |
---|---|
static interface |
StreamObserverFactory.StreamObserverClientFactory<RequestT,ResponseT>
A factory which creates
StreamObservers based on the input stream
observer. |
Constructor and Description |
---|
StreamObserverFactory() |
Modifier and Type | Method and Description |
---|---|
static StreamObserverFactory |
buffered(java.util.concurrent.ExecutorService executorService)
Create a buffering
StreamObserverFactory with the specified ExecutorService and
the default buffer size. |
static StreamObserverFactory |
buffered(java.util.concurrent.ExecutorService executorService,
int bufferSize)
Create a buffering
StreamObserverFactory with the specified ExecutorService and
buffer size. |
static StreamObserverFactory |
direct()
Create the default
StreamObserverFactory . |
abstract <ReqT,RespT> |
from(StreamObserverFactory.StreamObserverClientFactory<ReqT,RespT> clientFactory,
io.grpc.stub.StreamObserver<ReqT> responseObserver) |
public static StreamObserverFactory buffered(java.util.concurrent.ExecutorService executorService)
StreamObserverFactory
with the specified ExecutorService
and
the default buffer size.public static StreamObserverFactory buffered(java.util.concurrent.ExecutorService executorService, int bufferSize)
StreamObserverFactory
with the specified ExecutorService
and
buffer size.public static StreamObserverFactory direct()
StreamObserverFactory
.public abstract <ReqT,RespT> io.grpc.stub.StreamObserver<RespT> from(StreamObserverFactory.StreamObserverClientFactory<ReqT,RespT> clientFactory, io.grpc.stub.StreamObserver<ReqT> responseObserver)