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 ODatabasePoolInternal
OAcquireTimeoutException
public void close()
close
in interface ODatabasePoolInternal
close
in interface AutoCloseable
public void release(ODatabaseDocumentInternal database)
release
in interface ODatabasePoolInternal
public boolean isUnused()
ODatabasePoolInternal
isUnused
in interface ODatabasePoolInternal
public long getLastCloseTime()
ODatabasePoolInternal
getLastCloseTime
in interface ODatabasePoolInternal
public OrientDBConfig getConfig()
getConfig
in interface ODatabasePoolInternal
public boolean isClosed()
ODatabasePoolInternal
isClosed
in interface ODatabasePoolInternal
Copyright © 2009–2020 OrientDB. All rights reserved.