Package | Description |
---|---|
org.springframework.data.mongodb.core |
MongoDB core support.
|
Modifier and Type | Method and Description |
---|---|
SessionScoped |
MongoTemplate.withSession(com.mongodb.ClientSessionOptions options) |
SessionScoped |
MongoOperations.withSession(com.mongodb.ClientSessionOptions sessionOptions)
Obtain a
session bound instance of SessionScoped binding a new ClientSession
with given sessionOptions to each and every command issued against MongoDB. |
default SessionScoped |
MongoOperations.withSession(Supplier<com.mongodb.client.ClientSession> sessionProvider)
Obtain a
session bound instance of SessionScoped binding the ClientSession
provided by the given Supplier to each and every command issued against MongoDB. |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.