public class ThreadLocalCacheAccessor<K,V>
extends java.lang.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-2014 Atlassian. All Rights Reserved.