| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadLocal | |
| private static int | |
| private static final ThreadCache. | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static < cached object type E> E | Returns: cached object.the cached object type index. indexGet the cached object with the given type index from cache. |
| public static < cached object type E> E | Returns: cached object.current currentThread, final ThreadCache.Threadthe cached object type index. indexGet the cached object with the given type index from cache. |
| public static synchronized <E> ThreadCache. | |
| public static synchronized <E> ThreadCache. | |
| public static <E> boolean | |
| public static <E> boolean | |
| public static < cached object type E> E | Returns: cached objectthe cached object type index indexTake the cached object with the given type index from cache. |
| public static < cached object type E> E | Returns: cached objectcurrent currentThread, final ThreadCache.Threadthe cached object type index indexTake the cached object with the given type index from cache. |
| genericCacheAttr | back to summary |
|---|---|
| private static final ThreadLocal<ThreadCache. | |
| indexCounter | back to summary |
|---|---|
| private static int indexCounter | |
| INITIAL_OBJECT_ARRAY | back to summary |
|---|---|
| private static final ThreadCache. | |
| typeIndexMap | back to summary |
|---|---|
| private static final Map<String, ThreadCache. | |
| ThreadCache | back to summary |
|---|---|
| public ThreadCache() | |
| getFromCache | back to summary |
|---|---|
| public static <E> E getFromCache(final ThreadCache. Get the cached object with the given type index from cache. Unlike
| |
| getFromCache | back to summary |
|---|---|
| public static <E> E getFromCache(final Thread currentThread, final ThreadCache. Get the cached object with the given type index from cache. Unlike
| |
| obtainIndex | back to summary |
|---|---|
| public static synchronized <E> ThreadCache. | |
| obtainIndex | back to summary |
|---|---|
public static synchronized <E> ThreadCache.
| |
| putToCache | back to summary |
|---|---|
| public static <E> boolean putToCache(final ThreadCache. | |
| putToCache | back to summary |
|---|---|
| public static <E> boolean putToCache(final Thread currentThread, final ThreadCache. | |
| takeFromCache | back to summary |
|---|---|
| public static <E> E takeFromCache(final ThreadCache. Take the cached object with the given type index from cache. Unlike
| |
| takeFromCache | back to summary |
|---|---|
| public static <E> E takeFromCache(final Thread currentThread, final ThreadCache. Take the cached object with the given type index from cache. Unlike
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final int | |
| private final String | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Class | |
| public int | |
| public String | |
| public int |
| clazz | back to summary |
|---|---|
| private final Class<T> clazz | |
| index | back to summary |
|---|---|
| private final int index | |
| name | back to summary |
|---|---|
| private final String name | |
| size | back to summary |
|---|---|
| private final int size | |
| CachedTypeIndex | back to summary |
|---|---|
| public CachedTypeIndex(final int index, final String name, final Class<E> clazz, final int size) | |
| getClazz | back to summary |
|---|---|
| public Class | |
| getIndex | back to summary |
|---|---|
| public int getIndex() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getSize | back to summary |
|---|---|
| public int getSize() | |
| Modifier and Type | Field and Description |
|---|---|
| private ThreadCache. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public < cached object type E> E | Returns: cached object.the cached object type index. indexGet the cached object with the given type index from cache. |
| public boolean | |
| public < cached object type E> E | Returns: cached object.the cached object type index. indexTake the cached object with the given type index from cache. |
| objectCacheElements | back to summary |
|---|---|
| private ThreadCache. | |
| ObjectCache | back to summary |
|---|---|
| public ObjectCache() | |
| get | back to summary |
|---|---|
| public <E> E get(final ThreadCache. Get the cached object with the given type index from cache. Unlike
| |
| put | back to summary |
|---|---|
| public boolean put(final ThreadCache. | |
| take | back to summary |
|---|---|
| public <E> E take(final ThreadCache. Take the cached object with the given type index from cache. Unlike
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Object[] | |
| private int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| cache | back to summary |
|---|---|
| private final Object[] cache | |
| index | back to summary |
|---|---|
| private int index | |
| size | back to summary |
|---|---|
| private final int size | |
| ObjectCacheElement | back to summary |
|---|---|
| public ObjectCacheElement(int size) | |
| get | back to summary |
|---|---|
| public Object get() Get (peek) the object from cache. Unlike
| |
| put | back to summary |
|---|---|
| public boolean put(Object o) | |
| take | back to summary |
|---|---|
| public Object take() Take (poll) the object from cache. Unlike
| |