Untitled
List<Future<Void>> futures = batchInfoList.stream() .map(batchInfo -> threadPoolExecutor.submit(() -> { callOutboundCreateBatchApi(context.getProcessPath(), context.getNow(), Lists.newArrayList(batchInfo), context.getTraceId()); return null; })) .collect(Collectors.toList());
Leave a Comment