Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
B
C
D
E
G
H
K
M
N
P
R
S
V
W
B
BaseCache
<
K
,
V
> - Class in
net.sourceforge.rcache
Memory-Sensitive Cache base implementation.
BaseCache(int, float, int)
- Constructor for class net.sourceforge.rcache.
BaseCache
Creates an instance with custom capacity and concurrency level.
BaseCache(Map<K, KeyedReference<K, V>>)
- Constructor for class net.sourceforge.rcache.
BaseCache
Advanced constructor.
C
Cache
<
K
,
V
> - Interface in
net.sourceforge.rcache
Memory-Sensitive Cache.
Cache.Operation
- Enum in
net.sourceforge.rcache
The operations defined in the Cache interface.
CacheProfiler
<
K
,
V
> - Class in
net.sourceforge.rcache.decorator
Keeps track of the average execution time for each operation.
CacheProfiler(Cache<K, V>)
- Constructor for class net.sourceforge.rcache.decorator.
CacheProfiler
Creates an instance.
clear()
- Method in class net.sourceforge.rcache.
BaseCache
Removes all entries from this cache.
clear()
- Method in interface net.sourceforge.rcache.
Cache
Removes all entries from this cache.
clear()
- Method in class net.sourceforge.rcache.decorator.
CacheProfiler
Removes all entries from this cache.
clear()
- Method in class net.sourceforge.rcache.decorator.
MruGuard
Removes all entries from this cache.
createRef(K, V, ReferenceQueue<V>)
- Method in class net.sourceforge.rcache.
BaseCache
Factory method for creating a new reference instance.
createRef(K, V, ReferenceQueue<V>)
- Method in class net.sourceforge.rcache.
SoftCache
Factory method for creating a new reference instance.
createRef(K, V, ReferenceQueue<V>)
- Method in class net.sourceforge.rcache.
WeakCache
Factory method for creating a new reference instance.
D
DEFAULT_CONCURRENCY_LEVEL
- Static variable in interface net.sourceforge.rcache.
Cache
Default concurrency level.
DEFAULT_INITIAL_CAPACITY
- Static variable in interface net.sourceforge.rcache.
Cache
Default cache initial capacity.
DEFAULT_LOAD_FACTOR
- Static variable in interface net.sourceforge.rcache.
Cache
Default cache load factor.
E
entrySet()
- Method in class net.sourceforge.rcache.
BaseCache
equals(Object)
- Method in class net.sourceforge.rcache.
BaseCache
Cache instances are always different by nature, even if they contain exactly the same entries.
G
get(Object)
- Method in class net.sourceforge.rcache.
BaseCache
Returns the value to which this cache maps the specified key.
get(Object)
- Method in interface net.sourceforge.rcache.
Cache
Returns the value to which this cache maps the specified key.
get(Object)
- Method in class net.sourceforge.rcache.decorator.
CacheProfiler
Returns the value to which this cache maps the specified key.
get(Object)
- Method in class net.sourceforge.rcache.decorator.
MruGuard
Returns the value to which this cache maps the specified key.
get()
- Method in interface net.sourceforge.rcache.
KeyedReference
Gets the referenced value.
getAverage(Cache.Operation)
- Method in class net.sourceforge.rcache.decorator.
CacheProfiler
Gets the average execution time of an operation.
getAverages()
- Method in class net.sourceforge.rcache.decorator.
CacheProfiler
Gets the average execution time of all this cache operations.
getKey()
- Method in interface net.sourceforge.rcache.
KeyedReference
Gets the key for this reference.
getKey()
- Method in class net.sourceforge.rcache.
SoftKeyedReference
Get the reference key.
getKey()
- Method in class net.sourceforge.rcache.
WeakKeyedReference
Get the reference key.
getMaxSize()
- Method in class net.sourceforge.rcache.decorator.
MruGuard
Gets the maximum size of the MRU list.
getNum(Cache.Operation)
- Method in class net.sourceforge.rcache.decorator.
CacheProfiler
Gets the number of registered invocations to the specified Cache operation.
getNums()
- Method in class net.sourceforge.rcache.decorator.
CacheProfiler
Gets the number of invocations to each Cache operation.
H
hashCode()
- Method in class net.sourceforge.rcache.
BaseCache
The superclass implementation of this method relies on the
BaseCache.entrySet()
method, which always throws an exception.
K
KeyedReference
<
K
,
V
> - Interface in
net.sourceforge.rcache
Reference with an attached key to be used in a cache.
M
MruGuard
<
K
,
V
> - Class in
net.sourceforge.rcache.decorator
Decorator for Cache instances that adds an MRU list containing hard references to the most recently used entries.
MruGuard(Cache<K, V>, int)
- Constructor for class net.sourceforge.rcache.decorator.
MruGuard
Creates an instance.
mruIterator()
- Method in class net.sourceforge.rcache.decorator.
MruGuard
Gets an iterator for the internal MRU list.
N
net.sourceforge.rcache
- package net.sourceforge.rcache
Provides the Cache interface and its main implementations.
net.sourceforge.rcache.decorator
- package net.sourceforge.rcache.decorator
P
purge()
- Method in class net.sourceforge.rcache.
BaseCache
Removes keys for References that have been enqueued.
put(K, V)
- Method in class net.sourceforge.rcache.
BaseCache
Associates the specified value with the specified key in this cache, but only if no value is associated yet.
put(K, V)
- Method in interface net.sourceforge.rcache.
Cache
Associates the specified value with the specified key in this cache, but only if no value is associated yet.
put(K, V)
- Method in class net.sourceforge.rcache.decorator.
CacheProfiler
Associates the specified value with the specified key in this cache, but only if no value is associated yet.
put(K, V)
- Method in class net.sourceforge.rcache.decorator.
MruGuard
Associates the specified value with the specified key in this cache, but only if no value is associated yet.
R
remove(Object)
- Method in class net.sourceforge.rcache.
BaseCache
Removes the entry for this key from this cache if present.
remove(Object)
- Method in interface net.sourceforge.rcache.
Cache
Removes the entry for this key from this cache if present.
remove(Object)
- Method in class net.sourceforge.rcache.decorator.
CacheProfiler
Removes the entry for this key from this cache if present.
remove(Object)
- Method in class net.sourceforge.rcache.decorator.
MruGuard
Removes the entry for this key from this cache if present.
S
size()
- Method in class net.sourceforge.rcache.
BaseCache
SoftCache
<
K
,
V
> - Class in
net.sourceforge.rcache
Memory-Sensitive Cache Based on SoftReferences Entries in a SoftCache can be garbage collected if, and only if, the JVM considers that more memory is needed.
SoftCache()
- Constructor for class net.sourceforge.rcache.
SoftCache
Default constructor.
SoftCache(int)
- Constructor for class net.sourceforge.rcache.
SoftCache
Creates an instance with a custom initial capacity.
SoftCache(int, float)
- Constructor for class net.sourceforge.rcache.
SoftCache
Creates an instance with a custom initial capacity and load factor.
SoftCache(int, float, int)
- Constructor for class net.sourceforge.rcache.
SoftCache
Creates an instance with custom capacity and concurrency level.
SoftKeyedReference
<
K
,
V
> - Class in
net.sourceforge.rcache
KeyedReference implementation based on
SoftReference
.
SoftKeyedReference(K, V, ReferenceQueue<V>)
- Constructor for class net.sourceforge.rcache.
SoftKeyedReference
SoftKeyedReference constructor.
V
valueOf(String)
- Static method in enum net.sourceforge.rcache.
Cache.Operation
Returns the enum constant of this type with the specified name.
values()
- Method in class net.sourceforge.rcache.
BaseCache
values()
- Static method in enum net.sourceforge.rcache.
Cache.Operation
Returns an array containing the constants of this enum type, in the order they are declared.
W
WeakCache
<
K
,
V
> - Class in
net.sourceforge.rcache
Memory-Sensitive Cache Based on WeakReferences Entries in a WeakCache will be garbage collected as soon as there are no hard references left.
WeakCache()
- Constructor for class net.sourceforge.rcache.
WeakCache
Default constructor.
WeakCache(int)
- Constructor for class net.sourceforge.rcache.
WeakCache
Creates an instance with a custom initial capacity.
WeakCache(int, float)
- Constructor for class net.sourceforge.rcache.
WeakCache
Creates an instance with a custom initial capacity and load factor.
WeakCache(int, float, int)
- Constructor for class net.sourceforge.rcache.
WeakCache
Creates an instance with custom capacity and concurrency level.
WeakKeyedReference
<
K
,
V
> - Class in
net.sourceforge.rcache
KeyedReference implementation based on
WeakReference
.
WeakKeyedReference(K, V, ReferenceQueue<V>)
- Constructor for class net.sourceforge.rcache.
WeakKeyedReference
WeakKeyedReference constructor.
B
C
D
E
G
H
K
M
N
P
R
S
V
W
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
© 2007-2009 Rodrigo Ruiz
This site is hosted by