The Flux API

Flux<T> is a general purpose reactive publisher. It represents a stream of asynchronous events with zero or more values, optionally terminated by either a completion signal or an error. It is important to note that a Flux emits the following three events:

  • Value refers to the values generated by the publisher
  • Completion refers to a normal termination of the stream
  • Error refers to an erroneous termination of the stream:

 All of the preceding events are optional. This can lead to streams of the following types:

  • Infinite stream: A publisher generating only value events, and no terminal events (completion and error)
  • Infinite empty ...

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.