Implementation of Flux Pattern using Java