public interface ReactiveTransaction extends ReactiveQueryRunner
Transaction
except this reactive transaction exposes a reactive API.Transaction
,
ReactiveSession
,
Publisher
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<Void> |
close()
Close the transaction.
|
<T> org.reactivestreams.Publisher<T> |
commit()
Commits the transaction.
|
org.reactivestreams.Publisher<Boolean> |
isOpen()
Determine if transaction is open.
|
<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.org.reactivestreams.Publisher<Boolean> isOpen()
true
if transaction is open and false
otherwise.