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