K - the key typeE - public interface KeyedObjectPool<K,E extends Poolable> extends Pool
| Modifier and Type | Interface and Description |
|---|---|
static interface |
KeyedObjectPool.MemoryMeasure<K,E>
The Interface MemoryMeasure.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(K key) |
boolean |
containsValue(E e) |
E |
get(K key) |
Set<K> |
keySet() |
E |
peek(K key)
Get but don't update last access time.
|
boolean |
put(K key,
E e) |
boolean |
put(K key,
E e,
boolean autoDestroyOnFailedToPut) |
E |
remove(K key) |
Collection<E> |
values() |
boolean put(K key, E e, boolean autoDestroyOnFailedToPut)
key - e - autoDestroyOnFailedToPut - Collection<E> values()
boolean containsKey(K key)
key - boolean containsValue(E e)
e - Copyright © 2021. All rights reserved.