| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| public static class | |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final boolean | |
| pack-priv final Function | |
| pack-priv final Function | |
| pack-priv final Function |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void |
| bufferSize | back to summary |
|---|---|
| pack-priv final int bufferSize | |
| delayError | back to summary |
|---|---|
| pack-priv final boolean delayError | |
| keySelector | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends K> keySelector | |
| mapFactory | back to summary |
|---|---|
| pack-priv final Function<? super Consumer<Object>, ? extends Map<K, Object>> mapFactory | |
| valueSelector | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends V> valueSelector | |
| FlowableGroupBy | back to summary |
|---|---|
| public FlowableGroupBy(Flowable<T> source, Function<? super T, ? extends K> keySelector, Function<? super T, ? extends V> valueSelector, int bufferSize, boolean delayError, Function<? super Consumer<Object>, ? extends Map<K, Object>> mapFactory) | |
| subscribeActual | back to summary |
|---|---|
protected void subscribeActual(Subscriber<? super GroupedFlowable<K, V>> s)
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Queue |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(FlowableGroupBy.
the value valueImplements io. |
| evictedGroups | back to summary |
|---|---|
| pack-priv final Queue<FlowableGroupBy. | |
| EvictionAction | back to summary |
|---|---|
| pack-priv EvictionAction(Queue<FlowableGroupBy. | |
| accept | back to summary |
|---|---|
| public void accept(FlowableGroupBy. Implements io. Doc from io. Consume the given value.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final AtomicBoolean | |
| pack-priv final boolean | |
| pack-priv boolean | |
| pack-priv final Subscriber | |
| pack-priv long | |
| pack-priv final Queue | |
| pack-priv final AtomicLong | |
| pack-priv final AtomicInteger | |
| pack-priv final Map | |
| pack-priv final Function | |
| pack-priv final int | |
| pack-priv static final Object | |
| private static final long | |
| pack-priv Subscription | |
| pack-priv final Function |
| Access | Constructor and Description |
|---|---|
| public | GroupBySubscriber(Subscriber<? super GroupedFlowable<K, V>> actual, Function<? super T, ? extends K> keySelector, Function<? super T, ? extends V> valueSelector, int bufferSize, boolean delayError, Map<Object, FlowableGroupBy.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Implements org. Publisher to stop sending data and clean up resources.
|
| public void | |
| private void | |
| pack-priv static MissingBackpressureException | |
| 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).
|
| public void | onSubscribe(Subscription
the s)Subscription that allows requesting data via Subscription#request(long)Implements org. Publisher#subscribe(Subscriber).
|
| 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.
|
| pack-priv void |
| bufferSize | back to summary |
|---|---|
| pack-priv final int bufferSize | |
| cancelled | back to summary |
|---|---|
| pack-priv final AtomicBoolean cancelled | |
| delayError | back to summary |
|---|---|
| pack-priv final boolean delayError | |
| done | back to summary |
|---|---|
| pack-priv boolean done | |
| downstream | back to summary |
|---|---|
| pack-priv final Subscriber<? super GroupedFlowable<K, V>> downstream | |
| emittedGroups | back to summary |
|---|---|
| pack-priv long emittedGroups | |
| evictedGroups | back to summary |
|---|---|
| pack-priv final Queue<FlowableGroupBy. | |
| groupConsumed | back to summary |
|---|---|
| pack-priv final AtomicLong groupConsumed | |
| groupCount | back to summary |
|---|---|
| pack-priv final AtomicInteger groupCount | |
| groups | back to summary |
|---|---|
| pack-priv final Map<Object, FlowableGroupBy. | |
| keySelector | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends K> keySelector | |
| limit | back to summary |
|---|---|
| pack-priv final int limit | |
| NULL_KEY | back to summary |
|---|---|
| pack-priv static final Object NULL_KEY | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| upstream | back to summary |
|---|---|
| pack-priv Subscription upstream | |
| valueSelector | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends V> valueSelector | |
| GroupBySubscriber | back to summary |
|---|---|
| public GroupBySubscriber(Subscriber<? super GroupedFlowable<K, V>> actual, Function<? super T, ? extends K> keySelector, Function<? super T, ? extends V> valueSelector, int bufferSize, boolean delayError, Map<Object, FlowableGroupBy. | |
| 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.
| |
| cancel | back to summary |
|---|---|
| public void cancel(K key) | |
| completeEvictions | back to summary |
|---|---|
| private void completeEvictions() | |
| groupHangWarning | back to summary |
|---|---|
| pack-priv static MissingBackpressureException groupHangWarning(long n) | |
| 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
| |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(Subscription s) Implements org. Doc from org. Invoked after calling
No data will start flowing until
It is the responsibility of this
The
| |
| 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 | |
| requestGroup | back to summary |
|---|---|
| pack-priv void requestGroup(long n) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final FlowableGroupBy. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static <T, K> FlowableGroupBy. | createWith(K key, int bufferSize, FlowableGroupBy.
|
| public void | |
| public void | |
| public void | |
| protected void |
| state | back to summary |
|---|---|
| pack-priv final FlowableGroupBy. | |
| GroupedUnicast | back to summary |
|---|---|
| protected GroupedUnicast(K key, FlowableGroupBy. | |
| createWith | back to summary |
|---|---|
| public static <T, K> FlowableGroupBy. | |
| onComplete | back to summary |
|---|---|
| public void onComplete() | |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) | |
| subscribeActual | back to summary |
|---|---|
protected void subscribeActual(Subscriber<? super T> s)
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv final AtomicReference | |
| pack-priv final AtomicBoolean | |
| pack-priv final boolean | |
| pack-priv volatile boolean | |
| pack-priv Throwable | |
| pack-priv final AtomicBoolean | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv final K | |
| pack-priv final AtomicInteger | |
| pack-priv boolean | |
| pack-priv final FlowableGroupBy. | |
| pack-priv int | |
| pack-priv final SpscLinkedArrayQueue | |
| pack-priv final AtomicLong | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Implements org. Publisher to stop sending data and clean up resources.
|
| pack-priv void | |
| pack-priv boolean | checkTerminated(boolean d, boolean empty, Subscriber<? super T> a, boolean delayError, long emitted, boolean polled)
|
| pack-priv void | |
| public void | clear()
Implements io. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public boolean | isEmpty()
Implements io. |
| public void | |
| public void | |
| public void | |
| public T | poll()
Implements io. |
| pack-priv void | |
| 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 int | requestFusion(int mode)
Implements io. |
| pack-priv void | |
| public void | subscribe(Subscriber<? super T>
the subscriber)Subscriber that will consume signals from this PublisherImplements org. Publisher to start streaming data.
|
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void |
| ABANDONED | back to summary |
|---|---|
| pack-priv static final int ABANDONED | |
| ABANDONED_HAS_SUBSCRIBER | back to summary |
|---|---|
| pack-priv static final int ABANDONED_HAS_SUBSCRIBER | |
| actual | back to summary |
|---|---|
| pack-priv final AtomicReference<Subscriber<? super T>> actual | |
| cancelled | back to summary |
|---|---|
| pack-priv final AtomicBoolean cancelled | |
| delayError | back to summary |
|---|---|
| pack-priv final boolean delayError | |
| done | back to summary |
|---|---|
| pack-priv volatile boolean done | |
| error | back to summary |
|---|---|
| pack-priv Throwable error | |
| evictOnce | back to summary |
|---|---|
| pack-priv final AtomicBoolean evictOnce | |
| FRESH | back to summary |
|---|---|
| pack-priv static final int FRESH | |
| HAS_SUBSCRIBER | back to summary |
|---|---|
| pack-priv static final int HAS_SUBSCRIBER | |
| key | back to summary |
|---|---|
| pack-priv final K key | |
| once | back to summary |
|---|---|
| pack-priv final AtomicInteger once | |
| outputFused | back to summary |
|---|---|
| pack-priv boolean outputFused | |
| parent | back to summary |
|---|---|
| pack-priv final FlowableGroupBy. | |
| produced | back to summary |
|---|---|
| pack-priv int produced | |
| queue | back to summary |
|---|---|
| pack-priv final SpscLinkedArrayQueue<T> queue | |
| requested | back to summary |
|---|---|
| pack-priv final AtomicLong requested | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| State | back to summary |
|---|---|
| pack-priv State(int bufferSize, FlowableGroupBy. | |
| 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.
| |
| cancelParent | back to summary |
|---|---|
| pack-priv void cancelParent() | |
| checkTerminated | back to summary |
|---|---|
| pack-priv boolean checkTerminated(boolean d, boolean empty, Subscriber<? super T> a, boolean delayError, long emitted, boolean polled) | |
| cleanupQueue | back to summary |
|---|---|
| pack-priv void cleanupQueue(long emitted, boolean polled) | |
| clear | back to summary |
|---|---|
| public void clear() Implements io. Doc from io. Removes all enqueued items from this queue.
| |
| drain | back to summary |
|---|---|
| pack-priv void drain() | |
| drainFused | back to summary |
|---|---|
| pack-priv void drainFused() | |
| drainNormal | back to summary |
|---|---|
| pack-priv void drainNormal() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements io. Doc from io. Returns true if the queue is empty.
Note however that due to potential fused functions in
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() | |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) | |
| poll | back to summary |
|---|---|
| public T poll() Implements io. Doc from io. Tries to dequeue a value (non-null) or returns null if the queue is empty.
If the producer uses | |
| replenishParent | back to summary |
|---|---|
| pack-priv void replenishParent(long emitted, boolean polled) | |
| 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 | |
| requestFusion | back to summary |
|---|---|
| public int requestFusion(int mode) Implements io. Doc from io. Request a fusion mode from the upstream.
This should be called before
Calling this method multiple times or after
| |
| requestParent | back to summary |
|---|---|
| pack-priv void requestParent(long e) | |
| subscribe | back to summary |
|---|---|
| public void subscribe(Subscriber<? super T> subscriber) Implements org. Doc from org. Request
This is a "factory method" and can be called multiple times, each time starting a new
Each
A
If the
| |
| tryAbandon | back to summary |
|---|---|
| pack-priv boolean tryAbandon() | |
| tryComplete | back to summary |
|---|---|
| pack-priv boolean tryComplete() | |
| tryReplenish | back to summary |
|---|---|
| pack-priv void tryReplenish() | |