Class LazyMongoClientCache
- java.lang.Object
-
- com.mongodb.spark.sql.connector.connection.LazyMongoClientCache
-
@Internal public final class LazyMongoClientCache extends java.lang.Object
A lazily initializedMongoClientCache
.- See Also:
- Java class lazy initialization rules
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.mongodb.client.MongoClient
getMongoClient(MongoClientFactory mongoClientFactory)
Returns aMongoClient
from the cache.
-
-
-
Method Detail
-
getMongoClient
public static com.mongodb.client.MongoClient getMongoClient(MongoClientFactory mongoClientFactory)
Returns aMongoClient
from the cache.- Parameters:
mongoClientFactory
- the factory that is used to create theMongoClient
- Returns:
- the MongoClient
-
-