본문 바로가기 메뉴 바로가기

zepinos BLOG

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

zepinos BLOG

검색하기 폼
  • 분류 전체보기 (128)
    • Programming (75)
      • Java (13)
      • Spring Boot 시작하기 (22)
      • JQuery (1)
      • JOOQ (9)
      • 웹사이트 구축 (9)
      • 코딩테스트 (0)
      • 프로그래밍 잡설 (6)
      • 기타 (15)
    • DB (12)
      • MySQL (3)
      • Couchbase (8)
    • Computer (24)
      • System (9)
      • Software (7)
      • OS (8)
    • 일상다반사 (17)
      • 회사 (7)
      • 일상생활 (10)
  • 방명록

ThreadPoolTaskExecutor (1)
TaskExecutor 로 @Async 의 Thread 을 Pool 로 관리하기

Spring 에서 @Async 을 이용해서 쉽게 비동기 method 을 만들 수 있습니다. 대략 다음과 같이 method 정의를 먼저 할 수 있을 겁니다. @Async public CompletableFuture async(String param1, int param2) { return CompletableFuture.completedFuture(param1 + " : " + param2); } 그리고 이를 다음과 같이 사용할 수 있겠죠. CompletableFuture result = service.async("status", 100); 하지만, 이렇게 그냥 사용할 경우 @Async 는 SimpleAsyncTaskExecutor 을 기본 TaskExcutor 로 이용하기 때문에 async method ..

Programming/Spring Boot 시작하기 2019. 1. 22. 11:24
이전 1 다음
이전 다음
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • Ellune's Spadework
TAG
  • docker
  • Phabricator
  • OracleJDK
  • 클라우드플레어
  • Spring MVC
  • 도입기
  • Redmine
  • 내장 WAS
  • messages.properties
  • proxmox
  • 외장 WAS
  • 엘지
  • Spring
  • boot
  • NoSQL
  • manjaro
  • jooq
  • 시니어 프로그래머
  • KDE
  • 프로젝트 규모
  • Spring Boot
  • RestTemplate
  • 워드프레스
  • SI
  • 페이징
  • Nas
  • git
  • couchbase
  • paging
  • java config
more
«   2025/07   »
일 월 화 수 목 금 토
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 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바