Untitled
wyc1230
plain_text
a month ago
926 B
6
Indexable
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()); public void callOutboundCreateBatchApi(@NonNull ProcessPath processPath, long timestamp, @NonNull List<StreamBatchInfoDTO> batches, String traceId) { Required type: List <Future<Void>> Provided: List <Future<Object>> no instance(s) of type variable(s) exist so that Future<Object> conforms to Future<Void> inference variable T has incompatible bounds: equality constraints: Future<Void> lower bounds: Future<Object>
Editor is loading...
Leave a Comment