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