|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.ThreadCache.ObjectCacheElement
public static final class ThreadCache.ObjectCacheElement
| Constructor Summary | |
|---|---|
ThreadCache.ObjectCacheElement(int size)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadCache.ObjectCacheElement(int size)
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||