Since the flux retains the value in a final field, any
this#subscribe(Subscriber) will
replay the value. This is a "Cold" fluxion.
Create such flux with the provided factory, E.g.:
Flux.just(1).subscribe(
log::info,
log::error,
()-> log.info("complete")
)
Will log:
1
complete
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final T |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public T | call()
Implements java. |
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides default reactor. |
| public void | subscribe(final CoreSubscriber<? super T>
the actual)Subscriber interested into the published sequenceImplements abstract reactor. Implements reactor. Publisher#subscribe(Subscriber) that will bypass
Hooks#onLastOperator(Function) pointcut.
|
| value | back to summary |
|---|---|
| pack-priv final T value | |
| FluxJust | back to summary |
|---|---|
| pack-priv FluxJust(T value) | |
| call | back to summary |
|---|---|
| public T call() throws Exception Implements java. Doc from java. Computes a result, or throws an exception if unable to do so. | |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Overrides default reactor. Doc from reactor. This method is used internally by components to define their key-value mappings
in a single place. Although it is ignoring the generic type of the
For public consumption of attributes, prefer using | |
| subscribe | back to summary |
|---|---|
| public void subscribe(final CoreSubscriber<? super T> actual) Implements abstract reactor. Implements reactor. Doc from reactor. An internal
In addition to behave as expected by
| |