|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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
Fields inherited from class com.bea.p13n.cache.internal.system.CacheConfig |
DEFAULT_ENABLED,
DEFAULT_MAX_ENTRIES,
DEFAULT_TTL,
MAX_ENTRIES_MAX,
TTL_NEVER_EXPIRE |
Fields inherited from class weblogic.management.configuration.ConfigurationMBean |
CACHING_STUB_SVUID |
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 |
addLinkMbeanAttribute,
getAttributeStringValue,
getNotes,
getSetFields,
getXml,
getXmlConverter,
isPersistenceEnabled,
setNotes,
setPersistenceEnabled |
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,
preDeregister,
preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener,
getNotificationInfo,
removeNotificationListener |
Method Detail |
public void setEnabled(boolean isEnabled)
The cache may be cleared of its contents by checking the "flush" tab on the cache administration console.
isEnabled
- Enabled state of the cachepublic boolean getEnabled()
public void setTimeToLive(long ttl)
ttl
- Default time to live for cache elements, in millisecondspublic long getTimeToLive()
public void setMaxEntries(int size)
size
- Maximum number of elements allowed in the cachepublic int getMaxEntries()
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |