public static class FlowableUseCaseConfig.Builder<T>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
FlowableUseCaseConfig<T> |
build() |
void |
disposePrevious(boolean disposePrevious)
Set whether currently running internal Flowable
should be disposed when execute is called repeatedly.
|
void |
onComplete(kotlin.jvm.functions.Function0<kotlin.Unit> onComplete)
Set lambda which is called when onComplete on
internal Flowable is called
|
void |
onError(kotlin.jvm.functions.Function1<? super java.lang.Throwable,kotlin.Unit> onError)
Set lambda which is called when onError on
internal Flowable is called
|
void |
onNext(kotlin.jvm.functions.Function1<? super T,kotlin.Unit> onNext)
Set lambda which is called when onNext on
internal Flowable is called
|
void |
onStart(kotlin.jvm.functions.Function0<kotlin.Unit> onStart)
Set lambda which is called right before
internal Flowable is subscribed
|
public void onStart(@NotNull
kotlin.jvm.functions.Function0<kotlin.Unit> onStart)
Set lambda which is called right before internal Flowable is subscribed
onStart - Lambda called right before Flowable issubscribed.public void onNext(@NotNull
kotlin.jvm.functions.Function1<? super T,kotlin.Unit> onNext)
Set lambda which is called when onNext on internal Flowable is called
onNext - Lambda called when onNext isemitted.public void onComplete(@NotNull
kotlin.jvm.functions.Function0<kotlin.Unit> onComplete)
Set lambda which is called when onComplete on internal Flowable is called
onComplete - Lambda called when onComplete isemitted.public void onError(@NotNull
kotlin.jvm.functions.Function1<? super java.lang.Throwable,kotlin.Unit> onError)
Set lambda which is called when onError on internal Flowable is called
onError - Lambda called when onError isemitted.public void disposePrevious(boolean disposePrevious)
Set whether currently running internal Flowable should be disposed when execute is called repeatedly.
disposePrevious - True if currently runninginternal Flowable should be disposed@NotNull public FlowableUseCaseConfig<T> build()