private TimeServiceCompletableFutureStub(Channel channel, Function<ListenableFuture, CompletableFuture> futureAdapter) { super(channel); this.futureAdapter = futureAdapter; innerStub = TimeServiceGrpc.newFutureStub(channel); }
private TimeServiceCompletableFutureStub(Channel channel, CallOptions callOptions, Function<ListenableFuture, CompletableFuture> futureAdapter) { super(channel, callOptions); this.futureAdapter = futureAdapter; innerStub = TimeServiceGrpc.newFutureStub(channel).build(channel, callOptions); }