DataSourcePool

DataSourcePool is interface which should be implemented by classes acting as a pool of data sources for single domain. There is no requirement to create class implementing this interface, however if implementation of DataSource is blocking and does not support concurrent requests, then creation of DataSourcePool is recommended. An example of such case is implementation of DataRepositoryImpl which executes all requests using single connection and for this class there is DataRepositoryPool implementing DataSourcePool interface and improving performance. Implementation of DataSourcePool is automatically selected using uri provided in configuration and @Repository.Meta annotation on classes implementing DataSourcePool interface.