public class PluginSessionPool extends ObjectPool<PluginSession>
| Modifier and Type | Field and Description |
|---|---|
protected DatabaseCredential |
databaseCredential |
protected org.apache.log4j.Logger |
logger |
closed, expirationTime, locked, name, unlocked| Constructor and Description |
|---|
PluginSessionPool(DatabaseCredential databaseCredential) |
| Modifier and Type | Method and Description |
|---|---|
protected PluginSession |
create() |
protected Connection |
createConnection() |
protected void |
expire(PluginSession session) |
void |
setDatabaseCredential(DatabaseCredential databaseCredential) |
protected boolean |
validate(PluginSession session) |
checkIn, checkOut, expireAllLocked, expireAllUnlocked, shutdown, toStringprotected org.apache.log4j.Logger logger
protected DatabaseCredential databaseCredential
public PluginSessionPool(DatabaseCredential databaseCredential)
public void setDatabaseCredential(DatabaseCredential databaseCredential)
databaseCredential - the databaseCredential to setprotected PluginSession create()
create in class ObjectPool<PluginSession>protected Connection createConnection() throws SQLException
SQLExceptionprotected boolean validate(PluginSession session)
validate in class ObjectPool<PluginSession>protected void expire(PluginSession session)
expire in class ObjectPool<PluginSession>Copyright © 2014. All Rights Reserved.