Class ODatabasePoolImpl
java.lang.Object
com.orientechnologies.orient.core.db.ODatabasePoolImpl
- All Implemented Interfaces:
ODatabasePoolInternal,AutoCloseable
Created by tglman on 07/07/16.
-
Constructor Summary
ConstructorsConstructorDescriptionODatabasePoolImpl(OrientDBInternal factory, String database, String user, String password, OrientDBConfig config) -
Method Summary
Modifier and TypeMethodDescriptionacquire()voidclose()longCheck last time that a resource was returned to the poolbooleanisClosed()Check if database pool is closedbooleanisUnused()Check that all resources owned by the pool are in the poolvoidrelease(ODatabaseDocumentInternal database)
-
Constructor Details
-
ODatabasePoolImpl
public ODatabasePoolImpl(OrientDBInternal factory, String database, String user, String password, OrientDBConfig config)
-
-
Method Details
-
acquire
- Specified by:
acquirein interfaceODatabasePoolInternal- Throws:
OAcquireTimeoutException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceODatabasePoolInternal
-
release
- Specified by:
releasein interfaceODatabasePoolInternal
-
isUnused
public boolean isUnused()Description copied from interface:ODatabasePoolInternalCheck that all resources owned by the pool are in the pool- Specified by:
isUnusedin interfaceODatabasePoolInternal- Returns:
-
getLastCloseTime
public long getLastCloseTime()Description copied from interface:ODatabasePoolInternalCheck last time that a resource was returned to the pool- Specified by:
getLastCloseTimein interfaceODatabasePoolInternal- Returns:
-
getConfig
- Specified by:
getConfigin interfaceODatabasePoolInternal
-
isClosed
public boolean isClosed()Description copied from interface:ODatabasePoolInternalCheck if database pool is closed- Specified by:
isClosedin interfaceODatabasePoolInternal- Returns:
- true if pool is closed
-