Constructor | Description |
---|---|
Holderβ() |
Modifier and Type | Method | Description |
---|---|---|
Mongo |
connectβ(MongoClientURI uri) |
Attempts to find an existing MongoClient instance matching that URI in the holder, and returns it if exists.
|
Mongo |
connectβ(MongoURI uri) |
Deprecated.
Please use
connect(MongoClientURI) instead. |
static Mongo.Holder |
singletonβ() |
Get the only instance of
Holder . |
public static Mongo.Holder singletonβ()
Holder
.Holder
@Deprecated public Mongo connectβ(MongoURI uri)
connect(MongoClientURI)
instead.uri
- the Mongo URIMongoException
- if there's a failurepublic Mongo connectβ(MongoClientURI uri)
uri
- the Mongo URIMongoException
- if there's a failure