|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.cache.PortalCache<K>
K
- Type of cacheable object@StableMinor(version="4.1", sinceVersion="4.0") public class PortalCache<K>
Memory cache for portal objects
Constructor Summary | |
---|---|
PortalCache(String cacheId)
|
|
PortalCache(String cacheId,
boolean autoClone)
|
Method Summary | |
---|---|
void |
clear()
|
void |
clear(ITransaction transaction)
Clears the cache and disables it until the given transaction ends. |
static void |
clearAll()
|
void |
destroy()
|
K |
get(String key)
|
static PortalCache |
getCache(String cacheId)
|
static Collection<String> |
getCacheIds()
|
int |
getCapacity()
Returns the current capacity of this portal cache. |
String |
getId()
|
int |
getSize()
Returns the number of entries currently stored in this cache. |
ICacheStatistics |
getStatistics()
|
void |
put(String key,
K value)
|
void |
remove(String key)
|
void |
remove(String key,
ITransaction transaction)
Removes an entry from the cache now and after the given transaction ends. |
void |
setCapacity(int newCapacity)
Sets the capacity for this portal cache. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PortalCache(String cacheId)
public PortalCache(String cacheId, boolean autoClone)
Method Detail |
---|
public static void clearAll()
public String getId()
public String toString()
toString
in class Object
public K get(String key)
public void put(String key, K value)
public void remove(String key)
public void remove(String key, ITransaction transaction) throws PortalException
key
- the entry key.transaction
- the transaction.
PortalException
public void clear()
public void clear(ITransaction transaction) throws PortalException
transaction
- the transaction.
PortalException
public int getSize()
public int getCapacity()
public void setCapacity(int newCapacity)
public void destroy()
public ICacheStatistics getStatistics()
public static PortalCache getCache(String cacheId)
public static Collection<String> getCacheIds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |