Interface OCachedDatabasePoolFactory
- All Known Implementing Classes:
OCachedDatabasePoolFactoryImpl
public interface OCachedDatabasePoolFactory
Cached database pool factory which allows store database pools associated with users
- Author:
- Vitalii Honchar (weaxme@gmail.com)
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close all cached pools, clear cache.get(String database, String username, String password, OrientDBConfig config) GetODatabasePoolInternalfrom cache or create and cache newODatabasePoolInternalbooleanisClosed()Check if factory is closedreset()Close all cached pools and clear cache
-
Method Details
-
get
GetODatabasePoolInternalfrom cache or create and cache newODatabasePoolInternal- Parameters:
database- name of databaseusername- user namepassword- user password- Returns:
ODatabasePoolInternalcached database pool
-
reset
OCachedDatabasePoolFactory reset()Close all cached pools and clear cache- Returns:
- this instance
-
close
void close()Close all cached pools, clear cache. Can't use this factory after close. -
isClosed
boolean isClosed()Check if factory is closed- Returns:
- true if factory is closed
-