public interface RxTransaction extends RxQueryRunner
Transaction except this reactive transaction exposes a reactive API.Transaction,
RxSession,
Publisher| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<Void> |
close()
Close the transaction.
|
<T> org.reactivestreams.Publisher<T> |
commit()
Commits the transaction.
|
<T> org.reactivestreams.Publisher<T> |
rollback()
Rolls back the transaction.
|
<T> org.reactivestreams.Publisher<T> commit()
T - makes it easier to be chained after other publishers.<T> org.reactivestreams.Publisher<T> rollback()
T - makes it easier to be chained after other publishers.org.reactivestreams.Publisher<Void> close()
committed or rolled back, the close is optional and no operation
is performed. Otherwise, the transaction will be rolled back by default by this method.Publisher that gets completed when close is successful, otherwise an error is signalled.