| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- boot
- RCP
- Spring Boot
- java
- JPA
- 독후감
- 맛집
- nodejs
- jface
- Web
- node
- 자바스크립트
- javascript
- 리뷰
- 엘라스틱서치
- 백준
- java8
- 인터페이스
- Spring
- 자바
- kibana
- 스프링
- Git
- elasticsearch
- MySQL
- effective
- 후기
- error
- 이펙티브
- 알고리즘
- Today
- Total
목록executor (3)
wedul
Spring에서 Async 개발을 진행하기 위해서 task executor를 사용해야했다. 그래서 servlet-context.xml에 task-executor 관련 내용을 쓰겠다고 설정하려고 하였다. 설정내용은 다음과 같았다. 123456789101112xmlns:task=http://www.springframework.org/schema/task // xsi:schemaLocation http://www.springframework.org/schema/taskhttp://www.springframework.org/schema/task/spring-task-4.1.xsd // pool 사이즈 설정 Colored by Color Scriptercs 다음과 같이 설정을 진행하였는데, cvc-complex-..
스레드 풀Public class GzipRunnable implements Runnable { Private final File input; Public GZipRunnable(File input) {This.input = intpu;} @OverridePulbic void run(){ if (!input.getName().endsWith(".gz")) {File output = new File(input.getParent(), input.getName() + ".gz");If(!output.exists) {Try (InputStream in = new BufferedInputStream(new FileInputStream(input));OutPutStream out = new BufferedOutput..
Futher, Callable, Executor스레드가 필요할 때 스레드를 생성하여 제공하는 ExecutorServiceCallabe 객체를 생성하여 Executor에 추가하여 객체를 순차적으로 실행한 후 Future 클래스로 결과를 반환 받는다.Callable 객체는 인터페이스이고 어떤 항목이든 담을 수 있는 call() 메소드 하나만 포함한다.EX) Callable 객체Class findmaxTask implements Callable{ FindMaxTas(int[] data, int start, int end){Super(data,start,end);} Public Integer getMax(){생략}} MultiThreadedMaxFinder 객체 Public class MultithreadedM..
