public static class CompletableUseCaseConfig.Builder
Constructs references to lambdas and some basic configuration used to process results of Completabler use case.
| Constructor and Description |
|---|
Builder()
Constructs references to lambdas and some basic configuration
used to process results of Completabler use case.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableUseCaseConfig |
build() |
void |
disposePrevious(boolean disposePrevious)
Set whether currently running internal Completable
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 Completable is called
|
void |
onError(kotlin.jvm.functions.Function1<? super java.lang.Throwable,kotlin.Unit> onError)
Set lambda which is called when onError on
internal Completable is called
|
void |
onStart(kotlin.jvm.functions.Function0<kotlin.Unit> onStart)
Set lambda which is called right before
internal Completable is subscribed
|
public Builder()
Constructs references to lambdas and some basic configuration used to process results of Completabler use case.
public void onStart(@NotNull
kotlin.jvm.functions.Function0<kotlin.Unit> onStart)
Set lambda which is called right before internal Completable is subscribed
onStart - Lambda called right before Completable issubscribed.public void onComplete(@NotNull
kotlin.jvm.functions.Function0<kotlin.Unit> onComplete)
Set lambda which is called when onComplete on internal Completable 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 Completable is called
onError - Lambda called when onError isemitted.public void disposePrevious(boolean disposePrevious)
Set whether currently running internal Completable should be disposed when execute is called repeatedly.
disposePrevious - True if currently runninginternal Completable should be disposed@NotNull public CompletableUseCaseConfig build()