@groovy.transform.CompileStatic class InMemoryConnectionSources<T, S extends ConnectionSourceSettings> extends AbstractConnectionSources<T, S>
Default implementation of the ConnectionSources interface. This implementation reads ConnectionSource implementations from configuration and stores them in-memory
| Modifiers | Name | Description |
|---|---|---|
protected java.util.Map<java.lang.String, ConnectionSource<T, S>> |
connectionSourceMap |
| Constructor and description |
|---|
InMemoryConnectionSources
(ConnectionSource<T, S> defaultConnectionSource, ConnectionSourceFactory<T, S> connectionSourceFactory, org.springframework.core.env.PropertyResolver configuration) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
ConnectionSource<T, S> |
addConnectionSource(java.lang.String name, org.springframework.core.env.PropertyResolver configuration) |
|
java.lang.Iterable<ConnectionSource<T, S>> |
getAllConnectionSources() |
|
ConnectionSource<T, S> |
getConnectionSource(java.lang.String name) |