use of io.grpc.stub.ClientCallStreamObserver in project pinpoint by naver.
the class DefaultStreamTask method start.
@Override
public void start() {
this.latch = new CountDownLatch(1);
StreamJob<ReqT> job = new StreamJob<ReqT>() {
@Override
public Future<?> start(final ClientCallStreamObserver<ReqT> requestStream) {
Runnable runnable = DefaultStreamTask.this.newRunnable(requestStream, latch);
StreamExecutor<ReqT> streamExecutor = streamExecutorFactory.newStreamExecutor();
return streamExecutor.execute(runnable);
}
@Override
public String toString() {
return streamId.toString();
}
};
this.stream = clientStreamingService.newStream(job);
}
Aggregations