Package 

Class CompletableUseCaseConfig.Builder


  • 
    public final class CompletableUseCaseConfig.Builder
    
                        

    Constructs references to lambdas and some basic configuration used to process results of Completabler use case.

    • Method Summary

      Modifier and Type Method Description
      final Unit onStart(Function0<Unit> onStart) Set lambda which is called right before internal Completable is subscribed
      final Unit onComplete(Function0<Unit> onComplete) Set lambda which is called when onComplete on internal Completable is called
      final Unit onError(Function1<Throwable, Unit> onError) Set lambda which is called when onError on internal Completable is called
      final Unit disposePrevious(Boolean disposePrevious) Set whether currently running internal Completable should be disposed when execute is called repeatedly.
      final CompletableUseCaseConfig build()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CompletableUseCaseConfig.Builder

        CompletableUseCaseConfig.Builder()
    • Method Detail

      • onStart

         final Unit onStart(Function0<Unit> onStart)

        Set lambda which is called right before internal Completable is subscribed

        Parameters:
        onStart - Lambda called right before Completable is subscribed.
      • onComplete

         final Unit onComplete(Function0<Unit> onComplete)

        Set lambda which is called when onComplete on internal Completable 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 Completable is called

        Parameters:
        onError - Lambda called when onError is emitted.
      • disposePrevious

         final Unit disposePrevious(Boolean disposePrevious)

        Set whether currently running internal Completable should be disposed when execute is called repeatedly.

        Parameters:
        disposePrevious - True if currently running internal Completable should be disposed