- Enclosing class:
- ThreadCache
public static final class ThreadCache.ObjectCacheElement
extends Object
-
Constructor Summary
Constructors
-
Method Summary
Get (peek) the object from cache.
boolean
Take (poll) the object from cache.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ObjectCacheElement
public ObjectCacheElement(int size)
-
Method Details
-
-
get
Get (peek) the object from cache. Unlike
take()
the object will not be removed from cache.
- Returns:
- object from cache.
-
take
Take (poll) the object from cache. Unlike
get()
the object will be removed from cache.
- Returns:
- object from cache.