public class MongoFactory extends Object
Mongo
instance) to a MongoDB cluster. Both explicit
construction with a pre-instantiated MongoClientConfiguration
and via
a MongoDB URI are supported.Modifier and Type | Method and Description |
---|---|
static Mongo |
create(MongoDbConfiguration config)
Deprecated.
Use the
createClient(MongoClientConfiguration)
instead. This method will be removed on or after the 1.3.0
release. |
static Mongo |
create(MongoDbUri mongoDbUri)
Deprecated.
Use the
createClient(MongoDbUri) instead. This
method will be removed on or after the 1.3.0 release. |
static Mongo |
create(String mongoDbUri)
Deprecated.
Use the
createClient(String) instead. This method
will be removed on or after the 1.3.0 release. |
static MongoClient |
createClient(MongoClientConfiguration config)
Creates a new
Mongo instance using the
MongoClientConfiguration . |
static MongoClient |
createClient(MongoDbUri mongoDbUri)
Creates a new
Mongo instance using a MongoDB style URL. |
static MongoClient |
createClient(String mongoDbUri)
Creates a new
Mongo instance using a MongoDB style URL. |
@Deprecated public static Mongo create(MongoDbConfiguration config)
createClient(MongoClientConfiguration)
instead. This method will be removed on or after the 1.3.0
release.Mongo
instance using the
MongoClientConfiguration
.config
- The configuration for the connection to MongoDB.Mongo
representation of the connections to MongoDB.@Deprecated public static Mongo create(MongoDbUri mongoDbUri)
createClient(MongoDbUri)
instead. This
method will be removed on or after the 1.3.0 release.Mongo
instance using a MongoDB style URL.mongoDbUri
- The configuration for the connection to MongoDB expressed as a
MongoDB URL.Mongo
representation of the connections to MongoDB.@Deprecated public static Mongo create(String mongoDbUri)
createClient(String)
instead. This method
will be removed on or after the 1.3.0 release.Mongo
instance using a MongoDB style URL.mongoDbUri
- The configuration for the connection to MongoDB expressed as a
MongoDB URL.Mongo
representation of the connections to MongoDB.public static MongoClient createClient(MongoClientConfiguration config)
Mongo
instance using the
MongoClientConfiguration
.config
- The configuration for the connection to MongoDB.Mongo
representation of the connections to MongoDB.public static MongoClient createClient(MongoDbUri mongoDbUri)
Mongo
instance using a MongoDB style URL.mongoDbUri
- The configuration for the connection to MongoDB expressed as a
MongoDB URL.Mongo
representation of the connections to MongoDB.public static MongoClient createClient(String mongoDbUri)
Mongo
instance using a MongoDB style URL.mongoDbUri
- The configuration for the connection to MongoDB expressed as a
MongoDB URL.Mongo
representation of the connections to MongoDB.Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.