@groovy.transform.CompileStatic class MongoConnectionSources extends InMemoryConnectionSources<com.mongodb.client.MongoClient, MongoConnectionSourceSettings>
A ConnectionSources implementation that reads the connections from MongoDB
Modifiers | Name | Description |
---|---|---|
private static java.lang.String |
CONNECTION_NAME |
Constructor and description |
---|
MongoConnectionSources
(ConnectionSource<com.mongodb.client.MongoClient, MongoConnectionSourceSettings> defaultConnectionSource, ConnectionSourceFactory<com.mongodb.client.MongoClient, MongoConnectionSourceSettings> connectionSourceFactory, org.springframework.core.env.PropertyResolver configuration) |
Type Params | Return Type | Name and description |
---|---|---|
|
ConnectionSource<com.mongodb.client.MongoClient, MongoConnectionSourceSettings> |
addConnectionSource(java.lang.String name, org.springframework.core.env.PropertyResolver configuration) |
|
ConnectionSource<com.mongodb.client.MongoClient, MongoConnectionSourceSettings> |
addConnectionSource(java.lang.String name, org.bson.Document configuration) |
|
ConnectionSource<com.mongodb.client.MongoClient, MongoConnectionSourceSettings> |
addConnectionSource(java.lang.String name, java.util.Map<java.lang.String, java.lang.Object> configuration) |
|
protected com.mongodb.client.MongoCollection<org.bson.Document> |
getConnectionsCollection(ConnectionSource<com.mongodb.client.MongoClient, MongoConnectionSourceSettings> connectionSource) |
|
void |
initialize(ConnectionSource<com.mongodb.client.MongoClient, MongoConnectionSourceSettings> connectionSource) |