Deprecated
To be removed in 3.5, prefer clear cut usage of Sinks through
variations under Sinks..
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final FluxReplay. | |
| pack-priv volatile FluxReplay. | |
| pack-priv static final AtomicReferenceFieldUpdater | |
| pack-priv Subscription |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| public Flux | |
| public static < the type of the pushed elements T> ReplayProcessor | cacheLast()
Deprecated
use
Create a Sinks.
(or the unsafe variant if you're sure about external synchronization).
ReplayProcessor that caches the last element it has pushed,
replaying it to late subscribers.
|
| public static < the type of the pushed elements T> ReplayProcessor | Returns: a newReplayProcessor that replays its last pushed element to each new
Subscriber, or a default one if nothing was pushed yeta default value to start the sequence with in case nothing has been
cached yet. value)
Deprecated
use
Create a Sinks.
(or the unsafe variant if you're sure about external synchronization).
ReplayProcessor that caches the last element it has pushed,
replaying it to late subscribers.
|
| public static < the type of the pushed elements E> ReplayProcessor | create()
Deprecated
use
Create a new Sinks.
(or the unsafe variant if you're sure about external synchronization).
ReplayProcessor that replays an unbounded number of elements,
using a default internal Queue.
|
| public static < the type of the pushed elements E> ReplayProcessor | create(int
the backlog size, ie. maximum items retained for replay. historySize)
Deprecated
use
Create a new Sinks.
(or the unsafe variant if you're sure about external synchronization).
ReplayProcessor that replays up to historySize
elements.
|
| public static < the type of the pushed elements E> ReplayProcessor | Returns: a newReplayProcessor that replays the whole history to each new
Subscriber if configured as unbounded, a limited history otherwise.maximum items retained if bounded, or initial link size if unbounded historySize, boolean true if "unlimited" data store must be supplied unbounded)
Deprecated
use
Create a new Sinks.
for bounded cases (unbounded == false) or Sinks.
otherwise (or the unsafe variant if you're sure about external synchronization).
ReplayProcessor that either replay all the elements or a
limited amount of elements depending on the unbounded parameter.
|
| public static < the type of items observed and emitted by the Processor T> ReplayProcessor | Returns: a newReplayProcessor that replay up to size elements, but
will evict them from its history based on their age.the maximum number of buffered items size, Duration the maximum age of the contained items maxAge)
Deprecated
use
Creates a time- and size-bounded replay processor.
Sinks.
(or the unsafe variant if you're sure about external synchronization).
|
| public static < the type of items observed and emitted by the Processor T> ReplayProcessor | Returns: a newReplayProcessor that replay up to size elements, but
will evict them from its history based on their age.the maximum number of buffered items size, Duration the maximum age of the contained items in milliseconds maxAge, Scheduler the scheduler)Scheduler that provides the current time
Deprecated
use
Creates a time- and size-bounded replay processor.
Sinks.
(or the unsafe variant if you're sure about external synchronization).
|
| public static < the type of items observed and emitted by the Processor T> ReplayProcessor | Returns: a newReplayProcessor that replays elements based on their age.the maximum age of the contained items maxAge)
Deprecated
use
Creates a time-bounded replay processor.
Sinks.
(or the unsafe variant if you're sure about external synchronization).
|
| public static < the type of items observed and emitted by the Processor T> ReplayProcessor | Returns: a newReplayProcessor that replays elements based on their age.the maximum age of the contained items maxAge, Scheduler scheduler)
Deprecated
use
Creates a time-bounded replay processor.
Sinks.
(or the unsafe variant if you're sure about external synchronization).
|
| public Context | currentContext()
Overrides reactor. Overrides default reactor. Implements reactor. Context from dependent components which can include downstream
operators during subscribing or a terminal org..
|
| public int | currentSubscriberCount()
Implements reactor. Subscribers are currently subscribed to the sink.
|
| public long | downstreamCount()
Overrides reactor. Subscriber or -1 if untracked.
|
| public Throwable | getError()
Current error if any, default to null
|
| public int | getPrefetch()
Overrides reactor. Flux
|
| public Stream | inners()
Overrides reactor. Overrides default reactor. Stream of referenced inners (flatmap, multicast etc)
|
| protected boolean | isIdentityProcessor()
Overrides reactor. FluxProcessor<T, T>
|
| public boolean | isTerminated()
Overrides reactor. |
| public void | |
| public void | onError(Throwable
the throwable signaled throwable)Implements org. |
| public void | onNext(T
the element signaled t)Implements org. Publisher in response to requests to Subscription#request(long).
|
| public void | onSubscribe(Subscription
the s)Subscription that allows requesting data via Subscription#request(long)Implements org. onNext(Object) before
calling Subscription#request(long).
|
| pack-priv void | |
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides reactor. Implements reactor. |
| public void | subscribe(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.
|
| public Sinks. | tryEmitComplete()
Implements reactor. onComplete
signal.
|
| public Sinks. | tryEmitError(Throwable
the exception to signal, not null t)Implements reactor. onError
signal.
|
| public Sinks. | tryEmitNext(T
the value to emit, not null t)Implements reactor. onNext signal.
|