com.caucho.server.distcache
Class CacheManagerImpl

java.lang.Object
  extended by com.caucho.server.distcache.CacheManagerImpl
All Implemented Interfaces:
java.io.Closeable

public class CacheManagerImpl
extends java.lang.Object
implements java.io.Closeable

Cache which stores consistent copies on the cluster segment. Using the cache is like using java.util.Map. To add a new entry, call cache.put(key, value). To get the entry, call cache.get(key). The cache configuration affects the lifetime, local caching timeouts and consistency.


Constructor Summary
CacheManagerImpl(DistCacheSystem cacheSystem, java.lang.String name, java.lang.String guid, java.lang.ClassLoader loader)
           
 
Method Summary
 void close()
           
 CacheBuilder<?,?> createBuilder(java.lang.String name)
           
 CacheImpl createIfAbsent(java.lang.String name, CacheConfig config)
           
 CacheImpl getCache(java.lang.String name)
           
 void remove(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheManagerImpl

public CacheManagerImpl(DistCacheSystem cacheSystem,
                        java.lang.String name,
                        java.lang.String guid,
                        java.lang.ClassLoader loader)
Method Detail

createBuilder

public CacheBuilder<?,?> createBuilder(java.lang.String name)

getCache

public CacheImpl getCache(java.lang.String name)

createIfAbsent

public CacheImpl createIfAbsent(java.lang.String name,
                                CacheConfig config)

remove

public void remove(java.lang.String name)

close

public void close()
Specified by:
close in interface java.io.Closeable