Package com.mongodb
Class BSONTimestampCodec
java.lang.Object
com.mongodb.BSONTimestampCodec
- All Implemented Interfaces:
Codec<BSONTimestamp>
,Decoder<BSONTimestamp>
,Encoder<BSONTimestamp>
Knows how to encode and decode BSON timestamps.
- Since:
- 3.0
- MongoDB documentation
- Timestamps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecode
(BsonReader reader, DecoderContext decoderContext) void
encode
(BsonWriter writer, BSONTimestamp value, EncoderContext encoderContext)
-
Constructor Details
-
BSONTimestampCodec
public BSONTimestampCodec()
-
-
Method Details
-
encode
- Specified by:
encode
in interfaceEncoder<BSONTimestamp>
-
decode
- Specified by:
decode
in interfaceDecoder<BSONTimestamp>
-
getEncoderClass
- Specified by:
getEncoderClass
in interfaceEncoder<BSONTimestamp>
-