Uses of Interface
org.springframework.data.mongodb.MongoTransactionOptions
-
Uses of MongoTransactionOptions in org.springframework.data.mongodb
Modifier and TypeFieldDescriptionstatic final MongoTransactionOptions
MongoTransactionOptions.NONE
Value Object representing empty options enforcing client defaults.Modifier and TypeMethodDescriptionConvert the givenMap
into an instance ofMongoTransactionOptions
.default MongoTransactionOptions
MongoTransactionOptions.mergeWith
(MongoTransactionOptions fallbackOptions) Merge current options with given ones.static MongoTransactionOptions
MongoTransactionOptions.of
(com.mongodb.TransactionOptions options) Factory method to wrap given MongoDB driver nativeTransactionOptions
intoMongoTransactionOptions
.default MongoTransactionOptions
MongoTransactionOptionsResolver.resolve
(TransactionDefinition definition) ResolveMongoTransactionOptions
from a givenTransactionDefinition
by evaluatingTransactionAttribute.getLabels()
labels if possible.Modifier and TypeMethodDescriptiondefault MongoTransactionOptions
MongoTransactionOptions.mergeWith
(MongoTransactionOptions fallbackOptions) Merge current options with given ones.Modifier and TypeMethodDescriptiondefault <T> T
MongoTransactionOptions.map
(Function<MongoTransactionOptions, T> mappingFunction) Apply the current options using the given mappingFunction
and return its result.ModifierConstructorDescriptionMongoTransactionManager
(MongoDatabaseFactory databaseFactory, MongoTransactionOptionsResolver transactionOptionsResolver, MongoTransactionOptions defaultTransactionOptions) Create a newMongoTransactionManager
obtaining sessions from the givenMongoDatabaseFactory
applying the givenoptions
, if present, when starting a new transaction.ReactiveMongoTransactionManager
(ReactiveMongoDatabaseFactory databaseFactory, MongoTransactionOptionsResolver transactionOptionsResolver, MongoTransactionOptions defaultTransactionOptions) Create a newReactiveMongoTransactionManager
obtaining sessions from the givenReactiveMongoDatabaseFactory
applying the givenoptions
, if present, when starting a new transaction.