public abstract class Cache
extends java.lang.Object
Constructor and Description |
---|
Cache() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Closes the cache.
|
abstract boolean |
containsKey(java.lang.Object key)
Returns whether the given key is in this cache.
|
abstract java.lang.Object |
get(java.lang.Object key)
Returns the value for the given key.
|
abstract void |
put(java.lang.Object key,
java.lang.Object value)
Puts a (key, value)-pair into the cache.
|
static Cache |
synchronizedCache(Cache cache)
Returns a thread-safe cache backed by the specified cache.
|
public static Cache synchronizedCache(Cache cache)
public abstract void put(java.lang.Object key, java.lang.Object value)
public abstract java.lang.Object get(java.lang.Object key)
public abstract boolean containsKey(java.lang.Object key)
public abstract void close()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.