|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICompositeCacheAttributes
This defines the minimla behavior for the Cache Configuration settings.
Field Summary | |
---|---|
static short |
DISK_USAGE_PATTERN_SWAP
Items will only go to disk when the memory limit is reached. |
static short |
DISK_USAGE_PATTERN_UPDATE
Items will go to disk on a normal put. |
Method Summary | |
---|---|
ICompositeCacheAttributes |
copy()
Clones the attributes. |
java.lang.String |
getCacheName()
Gets the cacheName attribute of the ICompositeCacheAttributes object |
short |
getDiskUsagePattern()
|
long |
getMaxMemoryIdleTimeSeconds()
If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space. |
int |
getMaxObjects()
Gets the maxObjects attribute of the ICompositeCacheAttributes object |
int |
getMaxSpoolPerRun()
If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space. |
java.lang.String |
getMemoryCacheName()
Gets the memoryCacheName attribute of the ICompositeCacheAttributes object |
long |
getShrinkerIntervalSeconds()
If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space. |
int |
getSpoolChunkSize()
Number to send to disk at at time when memory is full. |
boolean |
getUseDisk()
Gets the useDisk attribute of the ICompositeCacheAttributes object |
boolean |
getUseLateral()
Gets the useLateral attribute of the ICompositeCacheAttributes object |
boolean |
getUseMemoryShrinker()
Whether the memory cache should perform background memory shrinkage. |
boolean |
getUseRemote()
returns whether the cache is remote enabled |
void |
setCacheName(java.lang.String s)
Sets the name of the cache, referenced by the appropriate manager. |
void |
setDiskUsagePattern(short diskUsagePattern)
By default this is SWAP_ONLY. |
void |
setDiskUsagePatternName(java.lang.String diskUsagePatternName)
Translates the name to the disk usage pattern short value. |
void |
setMaxMemoryIdleTimeSeconds(long seconds)
If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space. |
void |
setMaxObjects(int size)
SetMaxObjects is used to set the attribute to determine the maximum number of objects allowed in the memory cache. |
void |
setMaxSpoolPerRun(int maxSpoolPerRun)
If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space. |
void |
setMemoryCacheName(java.lang.String s)
Sets the name of the MemoryCache, referenced by the appropriate manager. |
void |
setShrinkerIntervalSeconds(long seconds)
If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space. |
void |
setSpoolChunkSize(int spoolChunkSize)
Number to send to disk at a time. |
void |
setUseDisk(boolean useDisk)
Sets the useDisk attribute of the ICompositeCacheAttributes object |
void |
setUseLateral(boolean d)
set whether the cache should use a lateral cache |
void |
setUseMemoryShrinker(boolean useShrinker)
Whether the memory cache should perform background memory shrinkage. |
void |
setUseRemote(boolean isRemote)
Sets whether the cache is remote enabled |
Field Detail |
---|
static final short DISK_USAGE_PATTERN_SWAP
static final short DISK_USAGE_PATTERN_UPDATE
Method Detail |
---|
void setMaxObjects(int size)
size
- The new maxObjects valueint getMaxObjects()
void setUseDisk(boolean useDisk)
useDisk
- The new useDisk valueboolean getUseDisk()
void setUseLateral(boolean d)
d
- The new useLateral valueboolean getUseLateral()
void setUseRemote(boolean isRemote)
isRemote
- The new useRemote valueboolean getUseRemote()
void setCacheName(java.lang.String s)
s
- The new cacheName valuejava.lang.String getCacheName()
void setMemoryCacheName(java.lang.String s)
s
- The new memoryCacheName valuejava.lang.String getMemoryCacheName()
void setUseMemoryShrinker(boolean useShrinker)
useShrinker
- The new UseMemoryShrinker valueboolean getUseMemoryShrinker()
void setMaxMemoryIdleTimeSeconds(long seconds)
seconds
- The new MaxMemoryIdleTimeSeconds valuelong getMaxMemoryIdleTimeSeconds()
void setShrinkerIntervalSeconds(long seconds)
seconds
- The new ShrinkerIntervalSeconds valuelong getShrinkerIntervalSeconds()
void setMaxSpoolPerRun(int maxSpoolPerRun)
maxSpoolPerRun
- The new maxSpoolPerRun valueint getMaxSpoolPerRun()
ICompositeCacheAttributes copy()
void setDiskUsagePattern(short diskUsagePattern)
diskUsagePattern
- The diskUsagePattern to set.void setDiskUsagePatternName(java.lang.String diskUsagePatternName)
The allowed values are SWAP and UPDATE.
diskUsagePatternName
- The diskUsagePattern to set.short getDiskUsagePattern()
int getSpoolChunkSize()
void setSpoolChunkSize(int spoolChunkSize)
spoolChunkSize
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |