protected static class ReactiveMongoTransactionManager.ReactiveMongoTransactionObject extends Object implements SmartTransactionObject
MongoResourceHolder
. Used as transaction object by
ReactiveMongoTransactionManager
.ReactiveMongoResourceHolder
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
abortTransaction()
Rollback (abort) the transaction.
|
reactor.core.publisher.Mono<Void> |
commitTransaction()
Commit the transaction.
|
void |
flush() |
com.mongodb.reactivestreams.client.ClientSession |
getSession() |
boolean |
isRollbackOnly() |
public reactor.core.publisher.Mono<Void> commitTransaction()
public reactor.core.publisher.Mono<Void> abortTransaction()
@Nullable public com.mongodb.reactivestreams.client.ClientSession getSession()
public boolean isRollbackOnly()
isRollbackOnly
in interface SmartTransactionObject
public void flush()
flush
in interface Flushable
flush
in interface SmartTransactionObject
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.