Class BsonSerializer
java.lang.Object
services.moleculer.service.MoleculerComponent
services.moleculer.serializer.Serializer
services.moleculer.serializer.BsonSerializer
- All Implemented Interfaces:
MoleculerLifecycle
BSON Serializer
Binary BSON reader and writer. This serializer is NOT compatible with the JavaScript/Node version of Moleculer. Sample of usage:
https://mvnrepository.com/artifact/de.undercouch/bson4jackson
compile group: 'de.undercouch', name: 'bson4jackson', version: '2.9.2'
Binary BSON reader and writer. This serializer is NOT compatible with the JavaScript/Node version of Moleculer. Sample of usage:
Transporter trans = new NatsTransporter("localhost");
trans.setSerializer(new BsonSerializer());
ServiceBroker broker = ServiceBroker.builder()
.nodeID("node1")
.transporter(trans)
.build();
Required dependency:https://mvnrepository.com/artifact/de.undercouch/bson4jackson
compile group: 'de.undercouch', name: 'bson4jackson', version: '2.9.2'
- See Also:
-
Field Summary
Fields inherited from class Serializer
debug, format, reader, writerFields inherited from class MoleculerComponent
broker, logger, name -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class MoleculerComponent
getBroker, getLogger, getName, stopped
-
Constructor Details
-
BsonSerializer
public BsonSerializer()
-