Package | Description |
---|---|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.internal.connection | |
com.mongodb.internal.session | |
com.mongodb.session |
Contains classes related to sessions
|
org.bson |
Contains the base BSON classes.
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
org.bson.json |
JSON serialization and deserialization.
|
Modifier and Type | Method and Description |
---|---|
BsonTimestamp |
ClusterClockAdvancingSessionContext.getOperationTime() |
(package private) static BsonTimestamp |
ProtocolHelper.getOperationTime(ResponseBuffers responseBuffers) |
Modifier and Type | Method and Description |
---|---|
void |
ClusterClockAdvancingSessionContext.advanceOperationTime(BsonTimestamp operationTime) |
void |
LevelCountingBsonWriter.writeTimestamp(BsonTimestamp value) |
void |
LevelCountingBsonWriter.writeTimestamp(java.lang.String name,
BsonTimestamp value) |
Modifier and Type | Method and Description |
---|---|
BsonTimestamp |
NoOpSessionContext.getOperationTime() |
Modifier and Type | Method and Description |
---|---|
void |
NoOpSessionContext.advanceOperationTime(BsonTimestamp operationTime) |
Modifier and Type | Field and Description |
---|---|
private BsonTimestamp |
ClientSessionImpl.operationTime |
Modifier and Type | Method and Description |
---|---|
BsonTimestamp |
ClientSessionImpl.getOperationTime() |
BsonTimestamp |
ClientSessionContext.getOperationTime() |
private BsonTimestamp |
ClientSessionImpl.greaterOf(BsonTimestamp newOperationTime) |
Modifier and Type | Method and Description |
---|---|
void |
ClientSessionImpl.advanceOperationTime(BsonTimestamp newOperationTime) |
void |
ClientSessionContext.advanceOperationTime(BsonTimestamp operationTime) |
private BsonTimestamp |
ClientSessionImpl.greaterOf(BsonTimestamp newOperationTime) |
Modifier and Type | Method and Description |
---|---|
BsonTimestamp |
SessionContext.getOperationTime()
Gets the current operation time for this session context
|
BsonTimestamp |
ClientSession.getOperationTime()
Gets the operation time of the last operation executed in this session.
|
Modifier and Type | Method and Description |
---|---|
void |
SessionContext.advanceOperationTime(BsonTimestamp operationTime)
Advance the operation time.
|
void |
ClientSession.advanceOperationTime(BsonTimestamp operationTime)
Set the operation time of the last operation executed in this session.
|
Modifier and Type | Method and Description |
---|---|
BsonTimestamp |
BsonValue.asTimestamp()
Gets this value as a BsonTimestamp if it is one, otherwise throws exception
|
protected abstract BsonTimestamp |
AbstractBsonReader.doReadTimestamp()
Handles the logic to read a timestamp
|
protected BsonTimestamp |
BsonDocumentReader.doReadTimestamp() |
protected BsonTimestamp |
BsonBinaryReader.doReadTimestamp() |
BsonTimestamp |
BsonDocument.getTimestamp(java.lang.Object key)
Gets the value of the key if it is a BsonTimestamp, or throws if not.
|
BsonTimestamp |
BsonDocument.getTimestamp(java.lang.Object key,
BsonTimestamp defaultValue)
If the document does not contain the given key, return the given default value.
|
BsonTimestamp |
BsonReader.readTimestamp()
Reads a BSON timestamp from the reader.
|
BsonTimestamp |
AbstractBsonReader.readTimestamp() |
BsonTimestamp |
BsonReader.readTimestamp(java.lang.String name)
Reads a BSON timestamp element from the reader.
|
BsonTimestamp |
AbstractBsonReader.readTimestamp(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
int |
BsonTimestamp.compareTo(BsonTimestamp ts) |
void |
BsonBinaryWriter.doWriteTimestamp(BsonTimestamp value) |
protected abstract void |
AbstractBsonWriter.doWriteTimestamp(BsonTimestamp value)
Handles the logic of writing a timestamp
|
void |
BsonDocumentWriter.doWriteTimestamp(BsonTimestamp value) |
void |
BSONCallbackAdapter.doWriteTimestamp(BsonTimestamp value) |
BsonTimestamp |
BsonDocument.getTimestamp(java.lang.Object key,
BsonTimestamp defaultValue)
If the document does not contain the given key, return the given default value.
|
void |
AbstractBsonWriter.writeTimestamp(BsonTimestamp value) |
void |
BsonWriter.writeTimestamp(BsonTimestamp value)
Writes a BSON Timestamp to the writer.
|
void |
AbstractBsonWriter.writeTimestamp(java.lang.String name,
BsonTimestamp value) |
void |
BsonWriter.writeTimestamp(java.lang.String name,
BsonTimestamp value)
Writes a BSON Timestamp element to the writer.
|
Modifier and Type | Method and Description |
---|---|
BsonTimestamp |
BsonTimestampCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<BsonTimestamp> |
BsonTimestampCodec.getEncoderClass() |
Modifier and Type | Method and Description |
---|---|
void |
BsonTimestampCodec.encode(BsonWriter writer,
BsonTimestamp value,
EncoderContext encoderContext) |
Modifier and Type | Field and Description |
---|---|
private Converter<BsonTimestamp> |
JsonWriterSettings.timestampConverter |
private Converter<BsonTimestamp> |
JsonWriterSettings.Builder.timestampConverter |
Modifier and Type | Method and Description |
---|---|
protected BsonTimestamp |
JsonReader.doReadTimestamp() |
private BsonTimestamp |
JsonReader.visitTimestampConstructor() |
private BsonTimestamp |
JsonReader.visitTimestampExtendedJson() |
Modifier and Type | Method and Description |
---|---|
Converter<BsonTimestamp> |
JsonWriterSettings.getTimestampConverter()
A converter from BSON Timestamp values to JSON.
|
Modifier and Type | Method and Description |
---|---|
void |
ShellTimestampConverter.convert(BsonTimestamp value,
StrictJsonWriter writer) |
void |
ExtendedJsonTimestampConverter.convert(BsonTimestamp value,
StrictJsonWriter writer) |
void |
JsonWriter.doWriteTimestamp(BsonTimestamp value) |
Modifier and Type | Method and Description |
---|---|
JsonWriterSettings.Builder |
JsonWriterSettings.Builder.timestampConverter(Converter<BsonTimestamp> timestampConverter)
Sets the converter from BSON Timestamp values to JSON.
|