@Deprecated
public static class Mongo.Holder
extends java.lang.Object
| Constructor and Description |
|---|
Holder()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Mongo |
connect(MongoClientURI uri)
Deprecated.
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()
Deprecated.
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 failureCopyright © 2010 - 2023 Adobe. All Rights Reserved