public class CompositeCacheAttributes extends Object implements ICompositeCacheAttributes
If all the default attributes are not defined in the default region definition in the cache.ccf, the hard coded defaults will be used.
ICompositeCacheAttributes.DiskUsagePattern
Constructor and Description |
---|
CompositeCacheAttributes()
Constructor for the CompositeCacheAttributes object
|
Modifier and Type | Method and Description |
---|---|
ICompositeCacheAttributes |
clone()
Clone object
|
String |
getCacheName()
Gets the cacheName attribute of the CompositeCacheAttributes object
|
ICompositeCacheAttributes.DiskUsagePattern |
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 CompositeCacheAttributes object
|
int |
getMaxSpoolPerRun()
If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space.
|
String |
getMemoryCacheName()
Gets the memoryCacheName attribute of the CompositeCacheAttributes 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 |
isUseDisk()
Gets the useDisk attribute of the CompositeCacheAttributes object
|
boolean |
isUseLateral()
Gets the useLateral attribute of the CompositeCacheAttributes object
|
boolean |
isUseMemoryShrinker()
Whether the memory cache should perform background memory shrinkage.
|
boolean |
isUseRemote()
Gets the useRemote attribute of the CompositeCacheAttributes object
|
void |
setCacheName(String s)
Sets the cacheName attribute of the CompositeCacheAttributes object
|
void |
setDiskUsagePattern(ICompositeCacheAttributes.DiskUsagePattern diskUsagePattern)
By default this is SWAP_ONLY.
|
void |
setDiskUsagePatternName(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 maxObjs)
Sets the maxObjects attribute of the CompositeCacheAttributes object
|
void |
setMaxSpoolPerRun(int maxSpoolPerRun)
If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space.
|
void |
setMemoryCacheName(String s)
Sets the memoryCacheName attribute of the CompositeCacheAttributes object
|
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 CompositeCacheAttributes object
|
void |
setUseLateral(boolean b)
Sets the useLateral attribute of the CompositeCacheAttributes object
|
void |
setUseMemoryShrinker(boolean useShrinker)
Whether the memory cache should perform background memory shrinkage.
|
void |
setUseRemote(boolean useRemote)
Sets the useRemote attribute of the CompositeCacheAttributes object
|
String |
toString()
Dumps the core attributes.
|
public CompositeCacheAttributes()
public void setMaxObjects(int maxObjs)
setMaxObjects
in interface ICompositeCacheAttributes
maxObjs
- The new maxObjects valuepublic int getMaxObjects()
getMaxObjects
in interface ICompositeCacheAttributes
public void setUseDisk(boolean useDisk)
setUseDisk
in interface ICompositeCacheAttributes
useDisk
- The new useDisk valuepublic boolean isUseDisk()
isUseDisk
in interface ICompositeCacheAttributes
public void setUseLateral(boolean b)
setUseLateral
in interface ICompositeCacheAttributes
b
- The new useLateral valuepublic boolean isUseLateral()
isUseLateral
in interface ICompositeCacheAttributes
public void setUseRemote(boolean useRemote)
setUseRemote
in interface ICompositeCacheAttributes
useRemote
- The new useRemote valuepublic boolean isUseRemote()
isUseRemote
in interface ICompositeCacheAttributes
public void setCacheName(String s)
setCacheName
in interface ICompositeCacheAttributes
s
- The new cacheName valuepublic String getCacheName()
getCacheName
in interface ICompositeCacheAttributes
public void setMemoryCacheName(String s)
setMemoryCacheName
in interface ICompositeCacheAttributes
s
- The new memoryCacheName valuepublic String getMemoryCacheName()
getMemoryCacheName
in interface ICompositeCacheAttributes
public void setUseMemoryShrinker(boolean useShrinker)
setUseMemoryShrinker
in interface ICompositeCacheAttributes
useShrinker
- The new UseMemoryShrinker valuepublic boolean isUseMemoryShrinker()
isUseMemoryShrinker
in interface ICompositeCacheAttributes
public void setMaxMemoryIdleTimeSeconds(long seconds)
setMaxMemoryIdleTimeSeconds
in interface ICompositeCacheAttributes
seconds
- The new MaxMemoryIdleTimeSeconds valuepublic long getMaxMemoryIdleTimeSeconds()
getMaxMemoryIdleTimeSeconds
in interface ICompositeCacheAttributes
public void setShrinkerIntervalSeconds(long seconds)
setShrinkerIntervalSeconds
in interface ICompositeCacheAttributes
seconds
- The new ShrinkerIntervalSeconds valuepublic long getShrinkerIntervalSeconds()
getShrinkerIntervalSeconds
in interface ICompositeCacheAttributes
public void setMaxSpoolPerRun(int maxSpoolPerRun)
If the value is -1, then there is no limit to the number of items to be spooled.
setMaxSpoolPerRun
in interface ICompositeCacheAttributes
maxSpoolPerRun
- The new maxSpoolPerRun valuepublic int getMaxSpoolPerRun()
getMaxSpoolPerRun
in interface ICompositeCacheAttributes
public void setDiskUsagePattern(ICompositeCacheAttributes.DiskUsagePattern diskUsagePattern)
setDiskUsagePattern
in interface ICompositeCacheAttributes
diskUsagePattern
- The diskUsagePattern to set.public void setDiskUsagePatternName(String diskUsagePatternName)
The allowed values are SWAP and UPDATE.
setDiskUsagePatternName
in interface ICompositeCacheAttributes
diskUsagePatternName
- The diskUsagePattern to set.public int getSpoolChunkSize()
getSpoolChunkSize
in interface ICompositeCacheAttributes
public void setSpoolChunkSize(int spoolChunkSize)
setSpoolChunkSize
in interface ICompositeCacheAttributes
spoolChunkSize
- public ICompositeCacheAttributes.DiskUsagePattern getDiskUsagePattern()
getDiskUsagePattern
in interface ICompositeCacheAttributes
public ICompositeCacheAttributes clone()
ICompositeCacheAttributes
clone
in interface ICompositeCacheAttributes
clone
in class Object
Object.clone()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.