Modifier and Type | Method and Description |
---|---|
int |
getCacheSizeLimit()
Gets the cache size limit.
|
long |
getFileLifeTime()
Gets the file lifeTime.
|
int |
getFileSizeLimit()
Gets the file size limit.
|
boolean |
isDebug()
Is debug set?
|
void |
setCacheSizeLimit(int limit)
Sets the cache size limit.
|
void |
setDebug(boolean debug)
Sets debug option.
|
void |
setFileLifeTime(long lifeTime)
Sets the file lifetime.
|
void |
setFileSizeLimit(int limit)
Sets the file size limit.
|
void setFileSizeLimit(int limit) throws ConfigException
If the file to be served is over this size, do not cache the entire contents, but map the file instead.
If this is not specified, 1Mb is assumed.
limit
- file size limit in bytesConfigException
- if unable to set propertyint getFileSizeLimit()
void setCacheSizeLimit(int limit) throws ConfigException
If this is not specified, 10Mb is assumed.
limit
- cache size limit in bytesConfigException
- if unable to set propertyint getCacheSizeLimit()
void setFileLifeTime(long lifeTime) throws ConfigException
If the file has not been accessed within the time specified, remove the entry from the cache.
If this is not specified, 1 day is assumed.
lifeTime
- in millisecondsConfigException
- if unable to set propertylong getFileLifeTime()
void setDebug(boolean debug) throws ConfigException
By default this is false.
debug
- true to set.ConfigException
- if unable to set propertyboolean isDebug()
Copyright © 2022 Push Technology Ltd. All Rights Reserved.