Package dev.morphia.internal
Interface SessionConfigurable<T extends SessionConfigurable<T>>
-
- All Known Implementing Classes:
AggregationOptions
,CountOptions
,DeleteOptions
,FindAndDeleteOptions
,FindAndModifyOptions
,FindOptions
,InsertManyOptions
,InsertOneOptions
,ModifyOptions
,UpdateOptions
public interface SessionConfigurable<T extends SessionConfigurable<T>>
Marks an options class as having a configurable ClientSession- Since:
- 2.0
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.mongodb.client.ClientSession
clientSession()
The client session to use for the insertion.T
clientSession(com.mongodb.client.ClientSession clientSession)
Set the client session to use for the insert.
-
-
-
Method Detail
-
clientSession
T clientSession(com.mongodb.client.ClientSession clientSession)
Set the client session to use for the insert.- Parameters:
clientSession
- the client session- Returns:
- this
- Since:
- 2.0
-
clientSession
@Nullable com.mongodb.client.ClientSession clientSession()
The client session to use for the insertion.- Returns:
- the client session
- Since:
- 2.0
-
-