|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.6.0) E15995-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@MXBean
public interface CacheConfig
Field Summary | |
---|---|
static int |
TTL_NEVER_EXPIRE Setting for time to live that indicates forever; elements in cache will never expire. |
Method Summary | |
---|---|
void |
clear() Clear the cache. |
void |
clearStats() Reset Hit and Miss counts to zero. |
java.lang.String |
getCacheName() Get cache name. |
int |
getHitCount() The Hit count is incremented each time a get operation is called on a known key. |
int |
getMaxEntries() Get maximum number of entries allowed in the cache. |
int |
getMissCount() The Miss count is incremented each time a get operation is called on an unknown key. |
long |
getTimeToLive() Get current time-to-live for cache elements (in milliseconds). |
boolean |
isActive() Specifies whether this cache is active. |
void |
setActive(boolean isActive) Set the desired active mode of cache. |
void |
setMaxEntries(int maxEntries) Set the desired maximum number of entries allowed in the cache. |
void |
setTimeToLive(long ttl) Set the desired time-to-live (in milliseconds) for cache elements. |
Field Detail |
---|
static final int TTL_NEVER_EXPIRE
Method Detail |
---|
java.lang.String getCacheName()
boolean isActive()
void setActive(boolean isActive)
isActive
- A hint as to the desired active setting of the cacheint getMaxEntries()
void setMaxEntries(int maxEntries)
maxEntries
- hint as to the desired maximum size of the cache. Must be set to a positive (non-zero) number.java.lang.IllegalArgumentException
- if maxEntries is not a positive number.long getTimeToLive()
void setTimeToLive(long ttl)
ttl
- The time to live for the cache, in milliseconds. Must be set to a positive (non-zero) number or TTL_NEVER_EXPIRE
.java.lang.IllegalArgumentException
- if ttl is not a positive number or TTL_NEVER_EXPIRE
.void clear()
int getHitCount()
int getMissCount()
void clearStats()
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.6.0) E15995-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |