Tech.io의 'Reactive Programming with Reactor 3'을 공부하면서 정리하는 글입니다. Transform Reactor 에는 데이터 변형시킬 수 있는 많은 연산자(Operators) 가 준비되어 있음 연습 // TODO Capitalize the user username, firstname and lastname Mono capitalizeOne(Mono mono) { return mono.map(u -> new User(u.getUsername().toUpperCase(), u.getFirstname().toUpperCase(), u.getLastname().toUpperCase())); } // TODO Capitalize the users username, firstNa..
Tech.io의 'Reactive Programming with Reactor 3'을 공부하면서 정리하는 글입니다. StepVerifier Reactor-test 프로젝트에 속함 Publisher 를 구독하면서 예상값과 순서를 검증(Assert)할 수 있음 검증이 실패할 경우, AssertionError 를 발생 create메서드로 인스턴스를 생성 반드시 verify() 메서드(=StepVerifier.LastStep)를 호출해야 함 보통 다음과 같은 형태임 StepVerifier.create(T) .{expectations...} .verify() expectations 의 종류 연습 // TODO Use StepVerifier to check that the flux parameter emits "f..
Tech.io의 'Reactive Programming with Reactor 3'을 공부하면서 정리하는 글입니다. Mono 리액티브 스트림의 Publisher 구현체 단 하나의 요소만 내놓는다(=Emit) Mono 가 가능한 상태 하나의 값을 가지고 있는 상태 (complete with element) 빈 상태 (complete without element) 실패한 상태 (error) Mono타입은 완료 신호에만 관심이 있는 경우 사용 연산자를 이용하여 '비동기 파이프라인'을 구성 가능 (Publisher를 상속한 Reactor의 특징) 마블 다이어그램 Mono 의 일반적인 마블 다이어그램 실제 예제 코드 Mono.just(1) .map(integer -> "foo" + integer) .or(Mono..
- Total
- Today
- Yesterday
- 빔
- Java
- 리액터
- intellij
- 리액티브프로그래밍
- 자바
- JavaScript
- unit test
- React
- gvim
- 커피스크립트
- 스프링인액션
- Widget
- maven
- Node.js
- VI
- reactiveprogramming
- Git
- dojo
- Configuration
- 윈도우즈
- 자바스크립트
- Eclipse
- tipoftheday
- Coffeescript
- VIM
- Windows
- console
- Commonjs
- REACTOR
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |