public final class ScalableObjectCache<E> extends Object implements ObjectCache<E>
| Constructor and Description |
|---|
ScalableObjectCache(ObjectFactory<E> factory,
int maxEntries) |
ScalableObjectCache(ObjectFactory<E> factory,
int maxEntries,
int numBuckets) |
| Modifier and Type | Method and Description |
|---|---|
E |
acquire()
Acquire an object from the object-cache.
|
CacheStats |
getCacheStats() |
void |
release(E e)
Release an object to the object-cache.
|
public ScalableObjectCache(ObjectFactory<E> factory, int maxEntries)
public ScalableObjectCache(ObjectFactory<E> factory, int maxEntries, int numBuckets)
public E acquire()
ObjectCacheacquire in interface ObjectCache<E>public void release(E e)
ObjectCacherelease in interface ObjectCache<E>e - The object to be released.public CacheStats getCacheStats()
getCacheStats in interface ObjectCache<E>Copyright © 2012. All Rights Reserved.