public abstract class AbstractPool<K,V,E extends java.lang.Exception>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractPool() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected abstract V |
create(K key)
Return a new value instance.
|
V |
get(K key)
Returns a value for the given key, which is lazily created and
pooled.
|
V |
remove(java.lang.Object key)
Remove a value, returning the old value.
|
java.util.Collection<V> |
values()
Returns the pool values, which may be concurrently modified.
|
public V get(K key) throws E extends java.lang.Exception
E extends java.lang.Exception
public V remove(java.lang.Object key)
public java.util.Collection<V> values()
public void clear()
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.