Package rx.internal.operators
Class CompletableOnSubscribeMerge
- java.lang.Object
-
- rx.internal.operators.CompletableOnSubscribeMerge
-
- All Implemented Interfaces:
Completable.CompletableOnSubscribe
,Action
,Action1<Completable.CompletableSubscriber>
,Function
public final class CompletableOnSubscribeMerge extends java.lang.Object implements Completable.CompletableOnSubscribe
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
CompletableOnSubscribeMerge.CompletableMergeSubscriber
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
delayErrors
(package private) int
maxConcurrency
(package private) Observable<Completable>
source
-
Constructor Summary
Constructors Constructor Description CompletableOnSubscribeMerge(Observable<? extends Completable> source, int maxConcurrency, boolean delayErrors)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
call(Completable.CompletableSubscriber s)
static java.lang.Throwable
collectErrors(java.util.Queue<java.lang.Throwable> q)
Collects the Throwables from the queue, adding subsequent Throwables as suppressed to the first Throwable and returns it.
-
-
-
Field Detail
-
source
final Observable<Completable> source
-
maxConcurrency
final int maxConcurrency
-
delayErrors
final boolean delayErrors
-
-
Constructor Detail
-
CompletableOnSubscribeMerge
public CompletableOnSubscribeMerge(Observable<? extends Completable> source, int maxConcurrency, boolean delayErrors)
-
-
Method Detail
-
call
public void call(Completable.CompletableSubscriber s)
- Specified by:
call
in interfaceAction1<Completable.CompletableSubscriber>
-
collectErrors
public static java.lang.Throwable collectErrors(java.util.Queue<java.lang.Throwable> q)
Collects the Throwables from the queue, adding subsequent Throwables as suppressed to the first Throwable and returns it.- Parameters:
q
- the queue to drain- Returns:
- the Throwable containing all other Throwables as suppressed
-
-