|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CacheConfig
Configuration of a Cache. Usually implemented by a descriptor bean mapping to META-INF/p13n-cache-config.xml.
| Field Summary | |
|---|---|
static boolean |
DEFAULT_ENABLEDDefault for enabled setting of a cache. |
static int |
DEFAULT_MAX_ENTRIESDefault for the size of a cache (max number of entries). |
static long |
DEFAULT_TTLDefault time to live for elements in the cache, in millisecs Value is one hour. |
static int |
MAX_ENTRIES_MAXMaximum value for the size of the cache (maximum number of entries). |
static int |
TTL_NEVER_EXPIRESetting for time to live that indicates forever; elements in cache will never expire. |
| Method Summary | |
|---|---|
boolean |
getEnabled()Get enabled mode of cache. |
int |
getMaxEntries()Get maximum number of entries allowed in the cache. |
String |
getProviderId()Get the id of the provider to use for this 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 |
setProviderId(String providerId)Set the provider id to use for this named cache. |
void |
setTimeToLive(long ttl)Set the default time-to-live (in milliseconds) for elements added to the cache. |
| Field Detail |
|---|
static final long DEFAULT_TTL
static final int TTL_NEVER_EXPIRE
static final int MAX_ENTRIES_MAX
static final int DEFAULT_MAX_ENTRIES
static final boolean DEFAULT_ENABLED
| Method Detail |
|---|
void setEnabled(boolean isEnabled)
isEnabled - The enabled setting of the cacheboolean getEnabled()
setEnabled(boolean)void setTimeToLive(long ttl)
TTL_NEVER_EXPIRE.ttl - The time to live for the cache, in milliseconds.long getTimeToLive()
setTimeToLive(long)void setMaxEntries(int size)
size - The maxium size of the cache.int getMaxEntries()
setMaxEntries(int)void setProviderId(String providerId)
providerId - The id of the provider to use for this cache.CacheFactory, CacheProviderString getProviderId()
CacheFactory, CacheProvider
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2010, Oracle. All rights reserved.