public static final class ThreadCache.ObjectCacheElement
extends java.lang.Object
| Constructor and Description |
|---|
ObjectCacheElement(int size) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get()
Get (peek) the object from cache.
|
boolean |
put(java.lang.Object o) |
java.lang.Object |
take()
Take (poll) the object from cache.
|
public boolean put(java.lang.Object o)
public java.lang.Object get()
take() the object will not be removed from cache.public java.lang.Object take()
get() the object will be removed from cache.Copyright © 2018 Oracle Corporation. All Rights Reserved.