Liferay 6.1.2-ce-ga3

com.liferay.portal.cache.memory
Class MemoryPortalCache

java.lang.Object
  extended by com.liferay.portal.cache.memory.MemoryPortalCache
All Implemented Interfaces:
PortalCache

public class MemoryPortalCache
extends Object
implements PortalCache


Constructor Summary
MemoryPortalCache(String name, int initialCapacity)
           
 
Method Summary
 void destroy()
           
 Collection<Object> get(Collection<Serializable> keys)
           
 Object get(Serializable key)
           
 String getName()
           
protected  void notifyPutEvents(Serializable key, Object value, boolean updated)
           
 void put(Serializable key, Object value)
           
 void put(Serializable key, Object value, int timeToLive)
           
 void put(Serializable key, Serializable value)
           
 void put(Serializable key, Serializable value, int timeToLive)
           
 void registerCacheListener(CacheListener cacheListener)
           
 void registerCacheListener(CacheListener cacheListener, CacheListenerScope cacheListenerScope)
           
 void remove(Serializable key)
           
 void removeAll()
           
 void unregisterCacheListener(CacheListener cacheListener)
           
 void unregisterCacheListeners()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryPortalCache

public MemoryPortalCache(String name,
                         int initialCapacity)
Method Detail

destroy

public void destroy()
Specified by:
destroy in interface PortalCache

get

public Collection<Object> get(Collection<Serializable> keys)
Specified by:
get in interface PortalCache

get

public Object get(Serializable key)
Specified by:
get in interface PortalCache

getName

public String getName()
Specified by:
getName in interface PortalCache

put

public void put(Serializable key,
                Object value)
Specified by:
put in interface PortalCache

put

public void put(Serializable key,
                Object value,
                int timeToLive)
Specified by:
put in interface PortalCache

put

public void put(Serializable key,
                Serializable value)
Specified by:
put in interface PortalCache

put

public void put(Serializable key,
                Serializable value,
                int timeToLive)
Specified by:
put in interface PortalCache

registerCacheListener

public void registerCacheListener(CacheListener cacheListener)
Specified by:
registerCacheListener in interface PortalCache

registerCacheListener

public void registerCacheListener(CacheListener cacheListener,
                                  CacheListenerScope cacheListenerScope)
Specified by:
registerCacheListener in interface PortalCache

remove

public void remove(Serializable key)
Specified by:
remove in interface PortalCache

removeAll

public void removeAll()
Specified by:
removeAll in interface PortalCache

unregisterCacheListener

public void unregisterCacheListener(CacheListener cacheListener)
Specified by:
unregisterCacheListener in interface PortalCache

unregisterCacheListeners

public void unregisterCacheListeners()
Specified by:
unregisterCacheListeners in interface PortalCache

notifyPutEvents

protected void notifyPutEvents(Serializable key,
                               Object value,
                               boolean updated)

Liferay 6.1.2-ce-ga3