Package org.springframework.data.mongodb
Class ReactiveMongoTransactionManager.ReactiveMongoTransactionObject
java.lang.Object
org.springframework.data.mongodb.ReactiveMongoTransactionManager.ReactiveMongoTransactionObject
- All Implemented Interfaces:
Flushable
,org.springframework.transaction.support.SmartTransactionObject
- Enclosing class:
- ReactiveMongoTransactionManager
protected static class ReactiveMongoTransactionManager.ReactiveMongoTransactionObject
extends Object
implements org.springframework.transaction.support.SmartTransactionObject
MongoDB specific transaction object, representing a
MongoResourceHolder
. Used as transaction object by
ReactiveMongoTransactionManager
.- Since:
- 2.2
- Author:
- Christoph Strobl, Mark Paluch
- See Also:
-
ReactiveMongoResourceHolder
-
Method Details
-
commitTransaction
Commit the transaction. -
abortTransaction
Rollback (abort) the transaction. -
getSession
@Nullable public com.mongodb.reactivestreams.client.ClientSession getSession() -
isRollbackOnly
public boolean isRollbackOnly()- Specified by:
isRollbackOnly
in interfaceorg.springframework.transaction.support.SmartTransactionObject
-
flush
public void flush()
-