public abstract class ConcurrentCache<K,V> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ConcurrentCache.Factory<K,V>
Factory interface for creating various cacheable objects.
|
Constructor and Description |
---|
ConcurrentCache(ConcurrentCache.Factory<K,V> f)
Constructs this cache using the specified
Factory . |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
containsKey(K key)
Tests whether the cache contains a value for the specified key
|
abstract V |
get(K key)
Retrieves a value for the specified key.
|
protected ConcurrentCache.Factory<K,V> |
getFactory()
Retrieves a
Factory instance aasociated with this cache |
public ConcurrentCache(ConcurrentCache.Factory<K,V> f)
Factory
.f
- public abstract V get(K key) throws ExecutionException
Factory
interfacekey
- the key the value is associated withExecutionException
public abstract boolean containsKey(K key)
key
- key to testprotected final ConcurrentCache.Factory<K,V> getFactory()
Factory
instance aasociated with this cacheFactory
instanceComments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.