Class LazyMongoClientCache
- java.lang.Object
-
- com.mongodb.spark.sql.connector.connection.LazyMongoClientCache
-
@Internal public final class LazyMongoClientCache extends java.lang.ObjectA 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.MongoClientgetMongoClient(MongoClientFactory mongoClientFactory)Returns aMongoClientfrom the cache.
-
-
-
Method Detail
-
getMongoClient
public static com.mongodb.client.MongoClient getMongoClient(MongoClientFactory mongoClientFactory)
Returns aMongoClientfrom the cache.- Parameters:
mongoClientFactory- the factory that is used to create theMongoClient- Returns:
- the MongoClient
-
-