public abstract class SingletonMap<K,V> extends Object
| Constructor and Description |
|---|
SingletonMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createSingleton(K key)
Initialize a value object for this key and return true, if this is the first time this key has been seen,
otherwise return false.
|
V |
get(K key) |
abstract V |
newInstance(K key) |
List<V> |
values() |
public boolean createSingleton(K key) throws Exception
Exceptionpublic V get(K key) throws InterruptedException
InterruptedExceptionpublic List<V> values() throws InterruptedException
InterruptedExceptionCopyright © 2016. All rights reserved.