public static final class ThreadCache.ObjectCache extends Object
Constructor and Description |
---|
ObjectCache() |
Modifier and Type | Method and Description |
---|---|
<E> E |
get(ThreadCache.CachedTypeIndex<E> index)
Get the cached object with the given type index from cache.
|
boolean |
put(ThreadCache.CachedTypeIndex index,
Object o) |
<E> E |
take(ThreadCache.CachedTypeIndex<E> index)
Take the cached object with the given type index from cache.
|
public boolean put(ThreadCache.CachedTypeIndex index, Object o)
public <E> E get(ThreadCache.CachedTypeIndex<E> index)
take(org.glassfish.grizzly.ThreadCache.CachedTypeIndex)
, the
object won't be removed from cache.E
- index
- the cached object type index.public <E> E take(ThreadCache.CachedTypeIndex<E> index)
get(org.glassfish.grizzly.ThreadCache.CachedTypeIndex)
, the
object will be removed from cache.E
- index
- the cached object type index.Copyright © 2014 Oracle Corporation. All rights reserved.