E
- element typepublic class ReactiveResult<E> extends ResultDelegate<E> implements QueryWrapper, TransactionListenable
Result
type with RxJava 2.0 conversion methods.delegate
Modifier and Type | Method and Description |
---|---|
void |
addTransactionListener(Supplier<TransactionListener> supplier) |
io.reactivex.Flowable<E> |
flowable()
Converts the result stream to a
Flowable . |
io.reactivex.Maybe<E> |
maybe()
Converts the result stream to a
Maybe value, return the first element
if present or completes if no results. |
io.reactivex.Observable<E> |
observable()
Converts the result stream to a
Observable . |
io.reactivex.Observable<ReactiveResult<E>> |
observableResult()
Creates an
Observable that emits this result initially and then again
whenever commits that may affect the query result are made from within the same
EntityStore from where this instance originated. |
QueryElement |
unwrapQuery() |
close, collect, each, first, firstOr, firstOr, firstOrNull, iterator, iterator, stream, toList, toMap, toMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
@CheckReturnValue public io.reactivex.Flowable<E> flowable()
Flowable
. When the flowable terminates
this result instance will be closed.@CheckReturnValue public io.reactivex.Maybe<E> maybe()
Maybe
value, return the first element
if present or completes if no results.@CheckReturnValue public io.reactivex.Observable<E> observable()
Observable
. When the observable
terminates this result instance will be closed.@CheckReturnValue public io.reactivex.Observable<ReactiveResult<E>> observableResult()
Observable
that emits this result initially and then again
whenever commits that may affect the query result are made from within the same
EntityStore
from where this instance originated.Observable
instance of this result that is triggered whenever
changes that may affect the query are made.public void addTransactionListener(Supplier<TransactionListener> supplier)
addTransactionListener
in interface TransactionListenable
public QueryElement unwrapQuery()
unwrapQuery
in interface QueryWrapper