public final class BoundedCacheConfiguration extends CacheConfiguration
| Modifier and Type | Field and Description | 
|---|---|
protected int | 
m_Capacity
Target max hashtable capacity; alos used as initial Capacity
 in hashtable constructor 
 | 
protected int | 
m_EmergencyCapacityTrigger
capacity at which an "emergency" purge is performed 
 | 
protected int | 
m_NormalCapacityTrigger
capacity at which a "normal" purge is posted 
 | 
protected int | 
m_PurgeTarget
Number of items desired in the cache after a purge operation 
 | 
protected int | 
m_UrgentCapacityTrigger
capacity at which an "urgent" purge is posted 
 | 
m_Name| Constructor and Description | 
|---|
BoundedCacheConfiguration()
Constructs a cache configuration. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getCapacity()
Gets the nominal capacity of the cache 
 | 
int | 
getEmergencyCapacityTrigger()
gets the emergency trigger cache level - when the cache reaches this level
 of capacity, any cache.put() oepration will immediately perform
 a purge operation. 
 | 
int | 
getNormalCapacityTrigger()
gets the normal trigger cache level - when the cache reaches this level
 of capacity, an "normal" purge request will be posted. 
 | 
int | 
getPurgeTarget()
gets the purge target - i.e. the desired number of items
 remaining in the cache after a purge operation. 
 | 
int | 
getUrgentCapacityTrigger()
gets the urgent trigger cache level - when the cache reaches this level
 of capacity, an "urgent" purge request will be posted. 
 | 
void | 
setCapacity(int capacity)
Sets the nominal capacity of the cache 
 | 
void | 
setEmergencyCapacityTrigger(int emergencyCapacityTrigger)
Sets the emergency trigger cache level - when the cache reaches this level
 of capacity, any cache.put() oepration will immediately perform
 a purge operation. 
 | 
void | 
setNormalCapacityTrigger(int normalCapacityTrigger)
Sets the normal trigger cache level - when the cache reaches this level
 of capacity, an "normal" purge request will be posted. 
 | 
void | 
setPurgeTarget(int purgeTarget)
Sets the purge target - i.e. the desired number of items
 remaining in the cache after a purge operation. 
 | 
void | 
setUrgentCapacityTrigger(int urgentCapacityTrigger)
Sets the urgent trigger cache level - when the cache reaches this level
 of capacity, an "urgent" purge request will be posted. 
 | 
clone, getName, setNameprotected int m_Capacity
protected int m_NormalCapacityTrigger
protected int m_UrgentCapacityTrigger
protected int m_EmergencyCapacityTrigger
protected int m_PurgeTarget
public BoundedCacheConfiguration()
public final int getCapacity()
public final int getNormalCapacityTrigger()
public final int getUrgentCapacityTrigger()
public final int getEmergencyCapacityTrigger()
public final int getPurgeTarget()
public final void setCapacity(int capacity)
capacity - the nominal capacity of the cachepublic final void setNormalCapacityTrigger(int normalCapacityTrigger)
normalCapacityTrigger - the normal trigger cache levelpublic final void setUrgentCapacityTrigger(int urgentCapacityTrigger)
urgentCapacityTrigger - the urgent trigger cache levelpublic final void setEmergencyCapacityTrigger(int emergencyCapacityTrigger)
emergencyCapacityTrigger - the emergency trigger cache levelpublic final void setPurgeTarget(int purgeTarget)
purgeTarget - the purge targetCopyright © 2025. All rights reserved.