public final class NoCache extends Object implements net.sf.jsr107cache.Cache
Modifier and Type | Field and Description |
---|---|
static NoCache |
INSTANCE
Creates a singleton reference the the NoCache implementation.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(net.sf.jsr107cache.CacheListener listener) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set |
entrySet() |
void |
evict() |
Object |
get(Object key) |
Map |
getAll(Collection keys) |
net.sf.jsr107cache.CacheEntry |
getCacheEntry(Object key) |
net.sf.jsr107cache.CacheStatistics |
getCacheStatistics() |
boolean |
isEmpty() |
Set |
keySet() |
void |
load(Object key) |
void |
loadAll(Collection keys) |
Object |
peek(Object key) |
Object |
put(Object key,
Object value) |
void |
putAll(Map t) |
Object |
remove(Object key) |
void |
removeListener(net.sf.jsr107cache.CacheListener listener) |
int |
size() |
Collection |
values() |
public static final NoCache INSTANCE
public boolean containsKey(Object key)
containsKey
in interface Map
containsKey
in interface net.sf.jsr107cache.Cache
public boolean containsValue(Object value)
containsValue
in interface Map
containsValue
in interface net.sf.jsr107cache.Cache
public Set entrySet()
public boolean isEmpty()
public Set keySet()
public void putAll(Map t)
public int size()
public Collection values()
public Map getAll(Collection keys) throws net.sf.jsr107cache.CacheException
getAll
in interface net.sf.jsr107cache.Cache
net.sf.jsr107cache.CacheException
public void load(Object key) throws net.sf.jsr107cache.CacheException
load
in interface net.sf.jsr107cache.Cache
net.sf.jsr107cache.CacheException
public void loadAll(Collection keys) throws net.sf.jsr107cache.CacheException
loadAll
in interface net.sf.jsr107cache.Cache
net.sf.jsr107cache.CacheException
public net.sf.jsr107cache.CacheEntry getCacheEntry(Object key)
getCacheEntry
in interface net.sf.jsr107cache.Cache
public net.sf.jsr107cache.CacheStatistics getCacheStatistics()
getCacheStatistics
in interface net.sf.jsr107cache.Cache
public void clear()
public void evict()
evict
in interface net.sf.jsr107cache.Cache
public void addListener(net.sf.jsr107cache.CacheListener listener)
addListener
in interface net.sf.jsr107cache.Cache
public void removeListener(net.sf.jsr107cache.CacheListener listener)
removeListener
in interface net.sf.jsr107cache.Cache
Copyright © 2010-2013. All Rights Reserved.