java.util.function.Predicate on the values. The predicate can be used in
several modes:
Until: A new buffer starts when the predicate returns true. The
element that just matched the predicate is the last in the previous buffer.UntilOther: A new buffer starts when the predicate returns true. The
element that just matched the predicate is the first in the new buffer.While: A new buffer starts when the predicate stops matching. The
non-matching elements are simply discarded.| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Supplier | |
| pack-priv final FluxBufferPredicate. | |
| pack-priv final Predicate |
| Access | Constructor and Description |
|---|---|
| pack-priv | FluxBufferPredicate(Flux<? extends T> source, Predicate<? super T> predicate, Supplier<C> bufferSupplier, FluxBufferPredicate.
|
| Modifier and Type | Method and Description |
|---|---|
| public int | getPrefetch()
Overrides reactor. Flux
|
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides reactor. Implements reactor. |
| public CoreSubscriber | subscribeOrReturn(CoreSubscriber<? super C> actual)
Implements abstract reactor. Implements reactor. CoreSubscriber, or force
subscription encapsulation by returning null.
|
| bufferSupplier | back to summary |
|---|---|
| pack-priv final Supplier<C> bufferSupplier | |
| mode | back to summary |
|---|---|
| pack-priv final FluxBufferPredicate. | |
| predicate | back to summary |
|---|---|
| pack-priv final Predicate<? super T> predicate | |
| FluxBufferPredicate | back to summary |
|---|---|
| pack-priv FluxBufferPredicate(Flux<? extends T> source, Predicate<? super T> predicate, Supplier<C> bufferSupplier, FluxBufferPredicate. | |
| getPrefetch | back to summary |
|---|---|
| public int getPrefetch() Overrides reactor. Doc from reactor. The prefetch configuration of the | |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Overrides reactor. Implements 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 | |
| subscribeOrReturn | back to summary |
|---|---|
| public CoreSubscriber Implements abstract reactor. Implements reactor. Doc from reactor. Allow delegation of the subscription by returning a
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final CoreSubscriber | |
| pack-priv C | |
| pack-priv final Supplier | |
| pack-priv boolean | |
| pack-priv volatile boolean | |
| pack-priv final FluxBufferPredicate. | |
| pack-priv final Predicate | |
| pack-priv static final AtomicLongFieldUpdater | |
| pack-priv static final AtomicLongFieldUpdater | |
| pack-priv volatile long | |
| pack-priv volatile long | |
| pack-priv volatile Subscription | |
| pack-priv static final AtomicReferenceFieldUpdater |
| Access | Constructor and Description |
|---|---|
| pack-priv | BufferPredicateSubscriber(CoreSubscriber<? super C> actual, C initialBuffer, Supplier<C> bufferSupplier, Predicate<? super T> predicate, FluxBufferPredicate.
|
| Modifier and Type | Method and Description |
|---|---|
| public CoreSubscriber | |
| public void | cancel()
Implements org. Publisher to stop sending data and clean up resources.
|
| pack-priv boolean | |
| pack-priv void | |
| public boolean | |
| public Iterator | iterator()
Implements abstract java. Implements java. |
| public boolean | offer(C
the element to add objects)Implements java. |
| public void | |
| public void | onError(Throwable
the throwable signaled t)Implements org. |
| public void | onNext(T
the element signaled t)Implements org. Publisher in response to requests to Subscription#request(long).
|
| private void | |
| public void | onSubscribe(Subscription
the s)Subscription that allows requesting data via Subscription#request(long)Implements reactor. onNext(Object) before
calling Subscription#request(long).
|
| public C | peek()
Implements java. null if this queue is empty.
|
| public C | poll()
Implements java. null if this queue is empty.
|
| public void | request(long
the strictly positive number of elements to requests to the upstream n)PublisherImplements org. Publisher until demand is signaled via this method.
|
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides default reactor. Implements reactor. |
| public int | size()
Implements abstract java. Implements java. |
| public String | toString()
Overrides java. |
| pack-priv C | |
| public boolean | tryOnNext(T
the value to consume, not null t)Implements reactor. |
| actual | back to summary |
|---|---|
| pack-priv final CoreSubscriber<? super C> actual | |
| buffer | back to summary |
|---|---|
| pack-priv C buffer
| |
| bufferSupplier | back to summary |
|---|---|
| pack-priv final Supplier<C> bufferSupplier | |
| done | back to summary |
|---|---|
| pack-priv boolean done | |
| fastpath | back to summary |
|---|---|
| pack-priv volatile boolean fastpath | |
| mode | back to summary |
|---|---|
| pack-priv final FluxBufferPredicate. | |
| predicate | back to summary |
|---|---|
| pack-priv final Predicate<? super T> predicate | |
| REQUESTED_BUFFERS | back to summary |
|---|---|
pack-priv static final AtomicLongFieldUpdater<FluxBufferPredicate.
| |
| REQUESTED_FROM_SOURCE | back to summary |
|---|---|
pack-priv static final AtomicLongFieldUpdater<FluxBufferPredicate.
| |
| requestedBuffers | back to summary |
|---|---|
| pack-priv volatile long requestedBuffers | |
| requestedFromSource | back to summary |
|---|---|
| pack-priv volatile long requestedFromSource | |
| s | back to summary |
|---|---|
| pack-priv volatile Subscription s | |
| S | back to summary |
|---|---|
| pack-priv static final AtomicReferenceFieldUpdater<FluxBufferPredicate. | |
| BufferPredicateSubscriber | back to summary |
|---|---|
| pack-priv BufferPredicateSubscriber(CoreSubscriber<? super C> actual, C initialBuffer, Supplier<C> bufferSupplier, Predicate<? super T> predicate, FluxBufferPredicate. | |
| actual | back to summary |
|---|---|
| public CoreSubscriber Implements reactor.
| |
| cancel | back to summary |
|---|---|
| public void cancel() Implements org. Doc from org. Request the Data may still be sent to meet previously signalled demand after calling cancel.
| |
| cancelledWhileAdding | back to summary |
|---|---|
| pack-priv boolean cancelledWhileAdding(T value) | |
| cleanup | back to summary |
|---|---|
| pack-priv void cleanup() | |
| getAsBoolean | back to summary |
|---|---|
| public boolean getAsBoolean() Implements java. Doc from java. Gets a result.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements in this collection. There are no guarantees concerning the order in which the elements are returned (unless this collection is an instance of some class that provides a guarantee). | |
| offer | back to summary |
|---|---|
| public boolean offer(C objects) Implements java. Doc from java. Inserts the specified element into this queue if it is possible to do
so immediately without violating capacity restrictions.
When using a capacity-restricted queue, this method is generally
preferable to
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements org. Doc from org. Successful terminal state.
No further events will be sent even if
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Implements org. Doc from org. Failed terminal state.
No further events will be sent even if | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements org. Doc from org. Data notification sent by the
| |
| onNextNewBuffer | back to summary |
|---|---|
| private void onNextNewBuffer() | |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(Subscription s) Implements reactor. Doc from reactor. Implementors should initialize any state used by
Note that an invalid request
No data will start flowing until
It is the responsibility of this
The
| |
| peek | back to summary |
|---|---|
| public C peek() Implements java. Doc from java. Retrieves, but does not remove, the head of this queue,
or returns | |
| poll | back to summary |
|---|---|
| public C poll() Implements java. Doc from java. Retrieves and removes the head of this queue,
or returns | |
| request | back to summary |
|---|---|
| public void request(long n) Implements org. Doc from org. No events will be sent by a
It can be called however often and whenever needed—but if the outstanding cumulative demand ever becomes Long.MAX_VALUE or more,
it may be treated by the
Whatever has been requested can be sent by the
A | |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Overrides default reactor. Implements 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 | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this collection. If this collection
contains more than
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of this collection. The string
representation consists of a list of the collection's elements in the
order they are returned by its iterator, enclosed in square brackets
( | |
| triggerNewBuffer | back to summary |
|---|---|
pack-priv C triggerNewBuffer()
| |
| tryOnNext | back to summary |
|---|---|
| public boolean tryOnNext(T t) Implements reactor. Doc from reactor. Try consuming the value and return true if successful.
| |
| Modifier and Type | Field and Description |
|---|---|
| private BiPredicate | |
| private Function | |
| private K |
| Access | Constructor and Description |
|---|---|
| pack-priv | ChangedPredicate(Function<? super T, ? extends K> keySelector, BiPredicate<? super K, ? super K> keyComparator)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements reactor. |
| public boolean | test(T
the input argument t)Implements java. |
| keyComparator | back to summary |
|---|---|
| private BiPredicate<? super K, ? super K> keyComparator | |
| keySelector | back to summary |
|---|---|
| private Function<? super T, ? extends K> keySelector | |
| lastKey | back to summary |
|---|---|
| private K lastKey | |
| ChangedPredicate | back to summary |
|---|---|
| pack-priv ChangedPredicate(Function<? super T, ? extends K> keySelector, BiPredicate<? super K, ? super K> keyComparator) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements reactor. Doc from reactor. Cancel or dispose the underlying task or resource. Implementations are required to make this method idempotent.
| |
| test | back to summary |
|---|---|
| public boolean test(T t) Implements java. Doc from java. Evaluates this predicate on the given argument.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final FluxBufferPredicate. | |
| public static final FluxBufferPredicate. | |
| public static final FluxBufferPredicate. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FluxBufferPredicate. | |
| public static FluxBufferPredicate. |
| UNTIL | back to summary |
|---|---|
| public static final FluxBufferPredicate. | |
| UNTIL_CUT_BEFORE | back to summary |
|---|---|
| public static final FluxBufferPredicate. | |
| WHILE | back to summary |
|---|---|
| public static final FluxBufferPredicate. | |
| Mode | back to summary |
|---|---|
| private Mode() | |
| valueOf | back to summary |
|---|---|
| public static FluxBufferPredicate. | |
| values | back to summary |
|---|---|
| public static FluxBufferPredicate. | |