-
public final class FlowableUseCaseConfig.Builder<T extends Object>
-
-
Constructor Summary
Constructors Constructor Description FlowableUseCaseConfig.Builder()
-
Method Summary
Modifier and Type Method Description final UnitonStart(Function0<Unit> onStart)Set lambda which is called right before internal Flowable is subscribed final UnitonNext(Function1<T, Unit> onNext)Set lambda which is called when onNext on internal Flowable is called final UnitonComplete(Function0<Unit> onComplete)Set lambda which is called when onComplete on internal Flowable is called final UnitonError(Function1<Throwable, Unit> onError)Set lambda which is called when onError on internal Flowable is called final UnitdisposePrevious(Boolean disposePrevious)Set whether currently running internal Flowable should be disposed when execute is called repeatedly. final FlowableUseCaseConfig<T>build()-
-
Method Detail
-
onStart
final Unit onStart(Function0<Unit> onStart)
Set lambda which is called right before internal Flowable is subscribed
- Parameters:
onStart- Lambda called right before Flowable is subscribed.
-
onNext
final Unit onNext(Function1<T, Unit> onNext)
Set lambda which is called when onNext on internal Flowable is called
- Parameters:
onNext- Lambda called when onNext is emitted.
-
onComplete
final Unit onComplete(Function0<Unit> onComplete)
Set lambda which is called when onComplete on internal Flowable is called
- Parameters:
onComplete- Lambda called when onComplete is emitted.
-
onError
final Unit onError(Function1<Throwable, Unit> onError)
Set lambda which is called when onError on internal Flowable is called
- Parameters:
onError- Lambda called when onError is emitted.
-
disposePrevious
final Unit disposePrevious(Boolean disposePrevious)
Set whether currently running internal Flowable should be disposed when execute is called repeatedly.
- Parameters:
disposePrevious- True if currently running internal Flowable should be disposed
-
build
final FlowableUseCaseConfig<T> build()
-
-
-
-