Package io.github.simplex.api
Interface Context<S>
public interface Context<S>
-
Method Summary
Modifier and TypeMethodDescriptiondefault reactor.core.publisher.Flux<S>
reactor.core.publisher.Mono<S>
reactor.core.publisher.Mono<Void>
setContext
(S context)
-
Method Details
-
getContext
reactor.core.publisher.Mono<S> getContext()- Returns:
- A Mono object which contains a single element represented by the definer of this Context class.
-
setContext
- Parameters:
context
- A separate (or identical) object identified by the definer of this Context class.- Returns:
- A Mono object which can be used to set the element of this Context class in a non-blocking manner.
-
contextCollection
Collection<S> contextCollection()- Returns:
- A collection of objects related to the definer of this Context class.
-
fluxFromCollection
- Returns:
- A Flux object which contains the values of the
contextCollection()
, for non-blocking interpretation.
-