org.apache.tapestry5.internal.mongodb

## Class MongoDBSourceImpl

- java.lang.Object
- - org.apache.tapestry5.internal.mongodb.MongoDBSourceImpl

- All Implemented Interfaces:
    MongoDBSource

      public class MongoDBSourceImpl
      extends Object
      implements MongoDBSource

  Default implementation for `MongoDBSource`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MongoDBSourceImpl(org.slf4j.Logger logger, int connectionPerHost, com.mongodb.ReadPreference readPreference, com.mongodb.WriteConcern writeConcern, List<com.mongodb.ServerAddress> serverAddresses)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.mongodb.MongoClient` | `getMongo()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MongoDBSourceImpl

          public MongoDBSourceImpl(org.slf4j.Logger logger,
                                   @Symbol(value="tapestry.mongodb.conns-per-host")
                                   int connectionPerHost,
                                   @Symbol(value="tapestry.mongodb.read_preference")
                                   com.mongodb.ReadPreference readPreference,
                                   @Symbol(value="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.

5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.