| Package | Description |
|---|---|
| com.mongodb |
The core mongodb package
|
| com.mongodb.async.client |
This packages contains classes for the new async client
|
| com.mongodb.internal.session | |
| com.mongodb.session |
Contains classes related to sessions
|
| Modifier and Type | Method and Description |
|---|---|
ClientSessionOptions |
ClientSessionOptions.Builder.build()
Build the session options instance.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) ClientSession |
Mongo.createClientSession(ClientSessionOptions options) |
ClientSession |
MongoClient.startSession(ClientSessionOptions options)
Creates a client session.
|
| Modifier and Type | Method and Description |
|---|---|
private ClientSessionImpl |
ClientSessionHelper.createClientSession(ClientSessionOptions options) |
(package private) void |
ClientSessionHelper.createClientSession(ClientSessionOptions options,
SingleResultCallback<ClientSession> callback) |
void |
MongoClient.startSession(ClientSessionOptions options,
SingleResultCallback<ClientSession> callback)
Creates a client session.
|
void |
MongoClientImpl.startSession(ClientSessionOptions options,
SingleResultCallback<ClientSession> callback) |
| Modifier and Type | Field and Description |
|---|---|
private ClientSessionOptions |
ClientSessionImpl.options |
| Modifier and Type | Method and Description |
|---|---|
ClientSessionOptions |
ClientSessionImpl.getOptions() |
| Constructor and Description |
|---|
ClientSessionImpl(ServerSessionPool serverSessionPool,
java.lang.Object originator,
ClientSessionOptions options) |
| Modifier and Type | Method and Description |
|---|---|
ClientSessionOptions |
ClientSession.getOptions()
Get the options for this session.
|