Client Session
A client session that supports transactions.
Functions
Abort a transaction in the context of this session. A transaction can only be aborted if one has first been started.
Set the operation time of the last operation executed in this session.
Clears the transaction context.
Commit a transaction in the context of this session. A transaction can only be commmited if one has first been started.
Gets the operation time of the last operation executed in this session.
Get the options for this session.
Gets the originator for the session.
Get the server address of the pinned mongos on this session. For internal use only.
Get the recovery token from the latest outcome in a sharded transaction. For internal use only.
For internal use only.
Gets the transaction context.
Gets the transaction options. Only call this method of the session has an active transaction
Returns true if there is an active transaction on this session, and false otherwise
Returns true if operations in this session must be causally consistent
Notify the client session that a message has been sent.
Notify the client session that command execution is being initiated. This should be called before server selection occurs.
Set the recovery token. For internal use only.
For internal use only.
Sets the transaction context.
Start a transaction in the context of this session with default transaction options. A transaction can not be started if there is already an active transaction on this session.
Start a transaction in the context of this session with the given transaction options. A transaction can not be started if there is already an active transaction on this session.