Class MongoDBSourceImpl

    • Constructor Detail

      • MongoDBSourceImpl

        public MongoDBSourceImpl(org.slf4j.Logger logger,
                                 @Symbol("tapestry.mongodb.conns-per-host")
                                 int connectionPerHost,
                                 @Symbol("tapestry.mongodb.read_preference")
                                 com.mongodb.ReadPreference readPreference,
                                 @Symbol("tapestry.mongodb.write_concern")
                                 com.mongodb.WriteConcern writeConcern,
                                 List<com.mongodb.ServerAddress> serverAddresses)
    • Method Detail

      • getMongo

        public com.mongodb.MongoClient getMongo()
        Specified by:
        getMongo in interface MongoDBSource
        Returns:
        the MongoClient database connection object.