public class JDBCDiskCacheAttributes extends AbstractDiskCacheAttributes
IDiskCacheAttributes.DiskLimitType| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_TOTAL
This is the default limit on the maximum number of active connections.
|
static String |
DEFAULT_POOL_NAME
The default Pool Name to which the connection pool will be keyed.
|
static int |
DEFAULT_SHRINKER_INTERVAL_SECONDS
This is the default setting for the cleanup routine.
|
MAX_PURGATORY_SIZE_DEFAULT| Constructor and Description |
|---|
JDBCDiskCacheAttributes() |
| Modifier and Type | Method and Description |
|---|---|
String |
getConnectionPoolName() |
String |
getDatabase() |
String |
getDriverClassName() |
String |
getJndiPath() |
long |
getJndiTTL() |
int |
getMaxTotal() |
String |
getPassword() |
int |
getShrinkerIntervalSeconds() |
String |
getTableName() |
String |
getUrl() |
String |
getUserName() |
boolean |
isTestBeforeInsert() |
boolean |
isUseDiskShrinker() |
void |
setConnectionPoolName(String connectionPoolName) |
void |
setDatabase(String database)
This is appended to the url.
|
void |
setDriverClassName(String driverClassName) |
void |
setJndiPath(String jndiPath) |
void |
setJndiTTL(long jndiTTL) |
void |
setMaxTotal(int maxActive) |
void |
setPassword(String password) |
void |
setShrinkerIntervalSeconds(int shrinkerIntervalSecondsArg) |
void |
setTableName(String tableName) |
void |
setTestBeforeInsert(boolean testBeforeInsert)
If this is true then the disk cache will check to see if the item already exists in the
database.
|
void |
setUrl(String url) |
void |
setUseDiskShrinker(boolean useDiskShrinker) |
void |
setUserName(String userName) |
String |
toString()
For debugging.
|
getDiskLimitType, getDiskPath, getMaxPurgatorySize, getShutdownSpoolTimeLimit, isAllowRemoveAll, setAllowRemoveAll, setDiskLimitType, setDiskLimitTypeName, setDiskPath, setDiskPath, setMaxPurgatorySize, setShutdownSpoolTimeLimitclone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setNameequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setNamepublic static final int DEFAULT_MAX_TOTAL
public static final int DEFAULT_SHRINKER_INTERVAL_SECONDS
public static final String DEFAULT_POOL_NAME
public void setUserName(String userName)
userName - The userName to set.public String getUserName()
public void setPassword(String password)
password - The password to set.public String getPassword()
public void setUrl(String url)
url - The url to set.public String getUrl()
public void setDatabase(String database)
database - The database to set.public String getDatabase()
public void setDriverClassName(String driverClassName)
driverClassName - The driverClassName to set.public String getDriverClassName()
public String getJndiPath()
public void setJndiPath(String jndiPath)
jndiPath - the jndiPath to setpublic long getJndiTTL()
public void setJndiTTL(long jndiTTL)
jndiTTL - the jndiTTL to setpublic void setTableName(String tableName)
tableName - The tableName to set.public String getTableName()
public void setTestBeforeInsert(boolean testBeforeInsert)
testBeforeInsert - The testBeforeInsert to set.public boolean isTestBeforeInsert()
public void setMaxTotal(int maxActive)
maxActive - The maxTotal to set.public int getMaxTotal()
public void setShrinkerIntervalSeconds(int shrinkerIntervalSecondsArg)
shrinkerIntervalSecondsArg - The shrinkerIntervalSeconds to set.public int getShrinkerIntervalSeconds()
public void setUseDiskShrinker(boolean useDiskShrinker)
useDiskShrinker - The useDiskShrinker to set.public boolean isUseDiskShrinker()
public void setConnectionPoolName(String connectionPoolName)
connectionPoolName - the connectionPoolName to setpublic String getConnectionPoolName()
public String toString()
toString in class AbstractDiskCacheAttributesCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.