Package | Description |
---|---|
com.mongodb.binding |
This package contains classes that manage binding to MongoDB servers for various operations.
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.internal.connection | |
com.mongodb.internal.session | |
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Method and Description |
---|---|
SessionContext |
ConnectionSource.getSessionContext()
Gets the session context for this source
|
SessionContext |
ReadBinding.getSessionContext()
Gets the session context for this binding.
|
SessionContext |
WriteBinding.getSessionContext()
Gets the session context for this binding.
|
SessionContext |
AsyncSingleConnectionReadBinding.getSessionContext() |
SessionContext |
SingleServerBinding.getSessionContext() |
SessionContext |
SingleConnectionReadBinding.getSessionContext() |
SessionContext |
AsyncWriteBinding.getSessionContext()
Gets the session context for this binding.
|
SessionContext |
AsyncReadBinding.getSessionContext()
Gets the session context for this binding.
|
SessionContext |
ClusterBinding.getSessionContext() |
SessionContext |
AsyncClusterBinding.getSessionContext() |
SessionContext |
AsyncConnectionSource.getSessionContext()
Gets the session context for this source
|
Modifier and Type | Method and Description |
---|---|
<T> T |
Connection.command(String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
ReadPreference readPreference,
Decoder<T> commandResultDecoder,
SessionContext sessionContext)
Execute the command.
|
<T> T |
Connection.command(String database,
BsonDocument command,
FieldNameValidator commandFieldNameValidator,
ReadPreference readPreference,
Decoder<T> commandResultDecoder,
SessionContext sessionContext,
boolean responseExpected,
SplittablePayload payload,
FieldNameValidator payloadFieldNameValidator)
Executes the command, consuming as much of the
SplittablePayload as possible. |
<T> void |
AsyncConnection.commandAsync(String database,
BsonDocument command,
FieldNameValidator commandFieldNameValidator,
ReadPreference readPreference,
Decoder<T> commandResultDecoder,
SessionContext sessionContext,
boolean responseExpected,
SplittablePayload payload,
FieldNameValidator payloadFieldNameValidator,
SingleResultCallback<T> callback)
Executes the command, consuming as much of the
SplittablePayload as possible. |
<T> void |
AsyncConnection.commandAsync(String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
ReadPreference readPreference,
Decoder<T> commandResultDecoder,
SessionContext sessionContext,
SingleResultCallback<T> callback)
Execute the command.
|
Modifier and Type | Class and Description |
---|---|
class |
NoOpSessionContext
A SessionContext implementation that does nothing and reports that it has no session.
|
Modifier and Type | Class and Description |
---|---|
class |
ClientSessionContext |
Modifier and Type | Method and Description |
---|---|
protected com.mongodb.operation.CommandOperationHelper.CommandCreator |
FindAndDeleteOperation.getCommandCreator(SessionContext sessionContext) |
protected com.mongodb.operation.CommandOperationHelper.CommandCreator |
FindAndUpdateOperation.getCommandCreator(SessionContext sessionContext) |
protected com.mongodb.operation.CommandOperationHelper.CommandCreator |
FindAndReplaceOperation.getCommandCreator(SessionContext sessionContext) |
Copyright © 2018. All rights reserved.