public class CacheManagerImpl extends CacheManager
DEFAULT_MANAGER_NAME| Constructor and Description |
|---|
CacheManagerImpl() |
CacheManagerImpl(String _name) |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheDestroyed(Cache c) |
void |
clear() |
void |
close()
The shutdown takes place in two phases.
|
ExecutorService |
createEvictionExecutor() |
void |
destroy() |
String |
getBuildNumber() |
Cache |
getCache(String name) |
ExecutorService |
getEvictionExecutor() |
String |
getName() |
GlobalPooledExecutor |
getThreadPool()
Lazy creation of thread pool, usable for all caches managed by the cache
manager.
|
GlobalPooledExecutor |
getThreadPoolEventually()
Only return thread pool if created before.
|
String |
getVersion() |
boolean |
isDestroyed() |
Iterator<Cache> |
iterator() |
void |
newCache(Cache c) |
getDefaultName, getInstance, getInstance, setDefaultNamepublic CacheManagerImpl()
public CacheManagerImpl(String _name)
public void cacheDestroyed(Cache c)
public String getName()
getName in class CacheManagerpublic Iterator<Cache> iterator()
iterator in interface Iterable<Cache>iterator in class CacheManagerpublic Cache getCache(String name)
getCache in class CacheManagerpublic void clear()
clear in class CacheManagerpublic void destroy()
destroy in class CacheManagerpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class CacheManagerpublic boolean isDestroyed()
isDestroyed in class CacheManagerpublic GlobalPooledExecutor getThreadPool()
public ExecutorService createEvictionExecutor()
public ExecutorService getEvictionExecutor()
public GlobalPooledExecutor getThreadPoolEventually()
public String getVersion()
public String getBuildNumber()
cache2k API documentation. Copyright © 2000–2015 headissue GmbH, Munich.