UUID chatRoomId = UUID.fromString("5c73531c-6fc4-426c-adcb-afc5c140a0f7");
// When
- Mono<ChatRoom> mono = chatHome
- .getChatRoom(chatRoomId)
+ Mono<ChatRoom> mono = Mono
+ .defer(() -> chatHome.getChatRoom(chatRoomId))
.log("testGetExistingChatroom")
.retryWhen(Retry
.backoff(5, Duration.ofSeconds(1))
UUID chatRoomId = UUID.fromString("7f59ec77-832e-4a17-8d22-55ef46242c17");
// When
- Mono<ChatRoom> mono = chatHome
- .getChatRoom(chatRoomId)
+ Mono<ChatRoom> mono = Mono
+ .defer(() -> chatHome.getChatRoom(chatRoomId))
.log("testGetNonExistentChatroom")
.retryWhen(Retry
.backoff(5, Duration.ofSeconds(1))
UUID chatRoomId = UUID.fromString("4e7246a6-29ae-43ea-b56f-669c3481ac19");
// When
- Mono<ChatRoom> mono = chatHome
- .getChatRoom(chatRoomId)
+ Mono<ChatRoom> mono = Mono
+ .defer(() -> chatHome.getChatRoom(chatRoomId))
.log("testGetChatroomForNotOwnedShard")
.retryWhen(Retry
.backoff(5, Duration.ofSeconds(1))