public abstract class Usecase
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Usecase(ThreadExecutor threadExecutor,
PostExecutionThread postExecutionThread) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Observable |
buildUseCaseObservable()
Builds an
Observable which will be used when executing the current Usecase. |
void |
execute(DisposableSubscriber usecaseDisposableObserver)
Executes the current use case.
|
void |
unsubscribe()
Unsubscribes from current
CompositeDisposable. |
protected Usecase(ThreadExecutor threadExecutor, PostExecutionThread postExecutionThread)
protected abstract Observable buildUseCaseObservable()
Observable which will be used when executing the current Usecase.public void execute(DisposableSubscriber usecaseDisposableObserver)
usecaseDisposableObserver - Usecase observable buildUseCaseObservable().public void unsubscribe()
CompositeDisposable.