양승길

    CompletableFuture #java병렬처리 1

    CompletableFuture - http 호출 병렬처리

    List futures = new ArrayList(); List accountKeys = Lists.newArrayList(); for(int i = 1 ; i httpCall()); futures.add(future); if(i % 20 == 0){ CompletableFuture.allOf(futures.toArray(new CompletableFuture[0])).join(); accountKeys.addAll(futures.stream().map(CompletableFuture::join).collect(Collectors.toList())); futures = new ArrayList(); } } if(!futures.isEmpty()){ CompletableFuture.allOf(future..

    꺼내먹어요 2023.04.20
    이전
    1
    다음
    더보기
    프로필사진

    양승길

    • 분류 전체보기
      • Kubernetes
      • 정리해봐요
        • 생각 정리
        • White label 자동화 여정
      • 꺼내먹어요
      • Java
        • Theory
        • History
      • Database
        • Theory
        • Practice
      • Network
      • Mini project
      • 잔잔바리
        • CodingPractice
        • Netty
        • Theory
        • Http
        • Web Socket
      • 일기

    Tag

    CompletableFuture #java병렬처리,

    최근글과 인기글

    • 최근글
    • 인기글

    최근댓글

    공지사항

    페이스북 트위터 플러그인

    • Facebook
    • Twitter

    Archives

    Calendar

    «   2025/06   »
    일 월 화 수 목 금 토
    1 2 3 4 5 6 7
    8 9 10 11 12 13 14
    15 16 17 18 19 20 21
    22 23 24 25 26 27 28
    29 30

    방문자수Total

    • Today :
    • Yesterday :
    반응형

    Copyright © Kakao Corp. All rights reserved.

    • Kim's :D

    티스토리툴바