public class ThreadLocalCacheAccessor<K,V> extends Object
ThreadLocalCache| Modifier and Type | Method and Description |
|---|---|
V |
get(K key)
Retrieve a value from the threadlocal cache
|
void |
init() |
static <K,V> ThreadLocalCacheAccessor<K,V> |
newInstance()
Factory method (for type inference)
|
void |
put(K key,
V value)
Put a value in the threadlocal cache
|
public static <K,V> ThreadLocalCacheAccessor<K,V> newInstance()
public void put(K key, V value)
key - the key to cachevalue - the value to cachepublic V get(K key)
key - the key for the cache valuepublic void init()
Copyright © 2003–2015 Atlassian. All rights reserved.