Interface ODatabasePoolInternal
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ODatabasePoolImpl
Created by tglman on 27/06/16.
-
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)
-
Method Details
-
acquire
ODatabaseSession acquire() -
close
void close()- Specified by:
closein interfaceAutoCloseable
-
release
-
getConfig
OrientDBConfig getConfig() -
isClosed
boolean isClosed()Check if database pool is closed- Returns:
- true if pool is closed
-
isUnused
boolean isUnused()Check that all resources owned by the pool are in the pool- Returns:
-
getLastCloseTime
long getLastCloseTime()Check last time that a resource was returned to the pool- Returns:
-