The Flux.just method

This is the simplest method for Flux generation. It takes a set of values, such as var-args, and generates a finite Flux stream with them. Each of the values specified as var-args forms a value event of the Flux. A completion event is published after publishing all of the specified values:

Flux.just("Red");Flux.just("Red", "Blue", "Yellow", "Black");Flux.just(new Person("Rahul"), new Person("Rudra"));

Get Hands-On Reactive Programming with Reactor now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.