class ClientSessionHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private MongoClientImpl |
mongoClient |
private ServerSessionPool |
serverSessionPool |
Constructor and Description |
---|
ClientSessionHelper(MongoClientImpl mongoClient,
ServerSessionPool serverSessionPool) |
Modifier and Type | Method and Description |
---|---|
private ClientSessionImpl |
createClientSession(ClientSessionOptions options) |
(package private) void |
createClientSession(ClientSessionOptions options,
SingleResultCallback<ClientSession> callback) |
private java.util.List<ServerDescription> |
getServerDescriptionListToConsiderForSessionSupport(ClusterDescription clusterDescription) |
(package private) void |
withClientSession(ClientSession clientSessionFromOperation,
SingleResultCallback<ClientSession> callback) |
private final MongoClientImpl mongoClient
private final ServerSessionPool serverSessionPool
ClientSessionHelper(MongoClientImpl mongoClient, ServerSessionPool serverSessionPool)
void withClientSession(ClientSession clientSessionFromOperation, SingleResultCallback<ClientSession> callback)
void createClientSession(ClientSessionOptions options, SingleResultCallback<ClientSession> callback)
private ClientSessionImpl createClientSession(ClientSessionOptions options)
private java.util.List<ServerDescription> getServerDescriptionListToConsiderForSessionSupport(ClusterDescription clusterDescription)