I am new to reactive programming.
My need is to populate all master data into a Hashmap from master data table at service start.
I am using reactive to get flux of master data as below
The above code doesn’t work and my statusMap is always empty.
Flux<StatusMaster> list = statusMasterRepository.findAll();
list.flatMap(status -> {
statusMap.put(status.getAccountStatus(),status);
return Flux.just(status);
});