org.glassfish.grizzly
Class ThreadCache.ObjectCacheElement
java.lang.Object
org.glassfish.grizzly.ThreadCache.ObjectCacheElement
- Enclosing class:
- ThreadCache
public static final class ThreadCache.ObjectCacheElement
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadCache.ObjectCacheElement
public ThreadCache.ObjectCacheElement(int size)
put
public boolean put(Object o)
get
public Object get()
- Get (peek) the object from cache.
Unlike
take() the object will not be removed from cache.
- Returns:
- object from cache.
take
public Object take()
- Take (poll) the object from cache.
Unlike
get() the object will be removed from cache.
- Returns:
- object from cache.
Copyright © 2012 Oracle Corporation. All Rights Reserved.