
public class ODatabasePoolImpl extends Object implements ODatabasePoolInternal
| Constructor and Description |
|---|
ODatabasePoolImpl(OrientDBInternal factory,
String database,
String user,
String password,
OrientDBConfig config) |
| Modifier and Type | Method and Description |
|---|---|
ODatabaseSession |
acquire() |
void |
close() |
OrientDBConfig |
getConfig() |
long |
getLastCloseTime()
Check last time that a resource was returned to the pool
|
boolean |
isClosed()
Check if database pool is closed
|
boolean |
isUnused()
Check that all resources owned by the pool are in the pool
|
void |
release(ODatabaseDocumentInternal database) |
public ODatabasePoolImpl(OrientDBInternal factory, String database, String user, String password, OrientDBConfig config)
public ODatabaseSession acquire() throws OAcquireTimeoutException
acquire in interface ODatabasePoolInternalOAcquireTimeoutExceptionpublic void close()
close in interface ODatabasePoolInternalclose in interface AutoCloseablepublic void release(ODatabaseDocumentInternal database)
release in interface ODatabasePoolInternalpublic boolean isUnused()
ODatabasePoolInternalisUnused in interface ODatabasePoolInternalpublic long getLastCloseTime()
ODatabasePoolInternalgetLastCloseTime in interface ODatabasePoolInternalpublic OrientDBConfig getConfig()
getConfig in interface ODatabasePoolInternalpublic boolean isClosed()
ODatabasePoolInternalisClosed in interface ODatabasePoolInternalCopyright © 2009–2025 OrientDB. All rights reserved.