|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The MBean that configures individual instances of a cache. The name of this MBean corresponds to the name of the cache (as retrieved from CacheFactoy.getCache(name)). If this MBean does not exist for a cache, the CacheFactory will pick appropriate values (usually the defaults) for a new cache.
Cache
,
CacheFactory
Field Summary |
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean |
CACHING_STUB_SVUID, DEFAULT_EMPTY_BYTE_ARRAY |
Fields inherited from interface com.bea.p13n.cache.internal.system.CacheConfig |
DEFAULT_ENABLED, DEFAULT_MAX_ENTRIES, DEFAULT_TTL, MAX_ENTRIES_MAX, TTL_NEVER_EXPIRE |
Method Summary | |
boolean |
getEnabled()
Get enabled mode of cache. |
int |
getMaxEntries()
Get maximum number of entries allowed in the cache. |
long |
getTimeToLive()
Get default time to live for cache elements (in milliseconds). |
void |
setEnabled(boolean isEnabled)
Set enabled mode of cache. |
void |
setMaxEntries(int size)
Set the maximum number of entries allowed in the cache. |
void |
setTimeToLive(long ttl)
Set the default time-to-live (in millisec) for elements added to the cache. |
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean |
freezeCurrentValue, getAttributeStringValue, getComments, getNotes, getSetFields, getXmlConverter, isDefaultedMBean, isPersistenceEnabled, preDeregister, registerConfigMBean, restoreDefaultValue, setComments, setDefaultedMBean, setNotes, setPersistenceEnabled, touch, unRegisterConfigMBean |
Methods inherited from interface weblogic.management.WebLogicMBean |
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent |
Methods inherited from interface javax.management.DynamicMBean |
getAttribute, getAttributes, invoke, setAttribute, setAttributes |
Methods inherited from interface javax.management.MBeanRegistration |
postDeregister, postRegister, preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener, getNotificationInfo, removeNotificationListener |
Method Detail |
public boolean getEnabled()
getEnabled
in interface com.bea.p13n.cache.internal.system.CacheConfig
public int getMaxEntries()
getMaxEntries
in interface com.bea.p13n.cache.internal.system.CacheConfig
public long getTimeToLive()
getTimeToLive
in interface com.bea.p13n.cache.internal.system.CacheConfig
public void setEnabled(boolean isEnabled)
The cache may be cleared of its contents by checking the "flush" tab on the cache administration console.
setEnabled
in interface com.bea.p13n.cache.internal.system.CacheConfig
isEnabled
- Enabled state of the cachepublic void setMaxEntries(int size)
setMaxEntries
in interface com.bea.p13n.cache.internal.system.CacheConfig
size
- Maximum number of elements allowed in the cachepublic void setTimeToLive(long ttl)
setTimeToLive
in interface com.bea.p13n.cache.internal.system.CacheConfig
ttl
- Default time to live for cache elements, in milliseconds
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |