use of com.hazelcast.jet.python.impl.grpc.InputMessage.Builder in project hazelcast by hazelcast.
the class PythonService method sendRequest.
CompletableFuture<List<String>> sendRequest(List<String> inputBatch) {
checkForServerError();
Builder requestBuilder = InputMessage.newBuilder();
for (String item : inputBatch) {
requestBuilder.addInputValue(item);
}
CompletableFuture<List<String>> future = new CompletableFuture<>();
futureQueue.add(future);
sink.onNext(requestBuilder.build());
return future;
}
Aggregations