Class ParallelFilterTry<T>
- java.lang.Object
-
- io.reactivex.rxjava3.parallel.ParallelFlowable<T>
-
- io.reactivex.rxjava3.internal.operators.parallel.ParallelFilterTry<T>
-
- Type Parameters:
T- the input value type
public final class ParallelFilterTry<T> extends ParallelFlowable<T>
Filters each 'rail' of the source ParallelFlowable with a predicate function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classParallelFilterTry.BaseFilterSubscriber<T>(package private) static classParallelFilterTry.ParallelFilterConditionalSubscriber<T>(package private) static classParallelFilterTry.ParallelFilterSubscriber<T>
-
Field Summary
Fields Modifier and Type Field Description (package private) BiFunction<? super java.lang.Long,? super java.lang.Throwable,ParallelFailureHandling>errorHandler(package private) Predicate<? super T>predicate(package private) ParallelFlowable<T>source
-
Constructor Summary
Constructors Constructor Description ParallelFilterTry(ParallelFlowable<T> source, Predicate<? super T> predicate, BiFunction<? super java.lang.Long,? super java.lang.Throwable,ParallelFailureHandling> errorHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intparallelism()Returns the number of expected parallelSubscribers.voidsubscribe(org.reactivestreams.Subscriber<? super T>[] subscribers)Subscribes an array ofSubscribers to thisParallelFlowableand triggers the execution chain for all 'rails'.-
Methods inherited from class io.reactivex.rxjava3.parallel.ParallelFlowable
collect, collect, compose, concatMap, concatMap, concatMapDelayError, concatMapDelayError, doAfterNext, doAfterTerminated, doOnCancel, doOnComplete, doOnError, doOnNext, doOnNext, doOnNext, doOnRequest, doOnSubscribe, filter, filter, filter, flatMap, flatMap, flatMap, flatMap, flatMapIterable, flatMapIterable, flatMapStream, flatMapStream, from, from, from, fromArray, map, map, map, mapOptional, mapOptional, mapOptional, reduce, reduce, runOn, runOn, sequential, sequential, sequentialDelayError, sequentialDelayError, sorted, sorted, to, toSortedList, toSortedList, validate
-
-
-
-
Field Detail
-
source
final ParallelFlowable<T> source
-
errorHandler
final BiFunction<? super java.lang.Long,? super java.lang.Throwable,ParallelFailureHandling> errorHandler
-
-
Constructor Detail
-
ParallelFilterTry
public ParallelFilterTry(ParallelFlowable<T> source, Predicate<? super T> predicate, BiFunction<? super java.lang.Long,? super java.lang.Throwable,ParallelFailureHandling> errorHandler)
-
-
Method Detail
-
subscribe
public void subscribe(org.reactivestreams.Subscriber<? super T>[] subscribers)
Description copied from class:ParallelFlowableSubscribes an array ofSubscribers to thisParallelFlowableand triggers the execution chain for all 'rails'.- Backpressure:
- The backpressure behavior/expectation is determined by the supplied
Subscriber. - Scheduler:
subscribedoes not operate by default on a particularScheduler.
- Specified by:
subscribein classParallelFlowable<T>- Parameters:
subscribers- the subscribers array to run in parallel, the number of items must be equal to the parallelism level of thisParallelFlowable- See Also:
ParallelFlowable.parallelism()
-
parallelism
public int parallelism()
Description copied from class:ParallelFlowableReturns the number of expected parallelSubscribers.- Specified by:
parallelismin classParallelFlowable<T>- Returns:
- the number of expected parallel
Subscribers
-
-