K - the key typeE - public class GenericKeyedObjectPool<K,E extends Poolable> extends AbstractPool implements KeyedObjectPool<K,E>
KeyedObjectPool.MemoryMeasure<K,E>| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear.
|
void |
close()
Close.
|
boolean |
containsKey(K key) |
boolean |
containsValue(E e) |
boolean |
equals(Object obj) |
E |
get(K key) |
int |
hashCode() |
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) |
int |
size() |
String |
toString() |
void |
vacate()
Vacate.
|
Collection<E> |
values() |
evictionCount, getCapacity, hitCount, isClosed, isEmpty, lock, missCount, putCount, unlockevictionCount, getCapacity, hitCount, isClosed, isEmpty, lock, missCount, putCount, unlockpublic boolean put(K key, E e)
put in interface KeyedObjectPool<K,E extends Poolable>key - e - public boolean put(K key, E e, boolean autoDestroyOnFailedToPut)
put in interface KeyedObjectPool<K,E extends Poolable>key - e - autoDestroyOnFailedToPut - public E get(K key)
get in interface KeyedObjectPool<K,E extends Poolable>key - public E remove(K key)
remove in interface KeyedObjectPool<K,E extends Poolable>key - public E peek(K key)
KeyedObjectPoolpeek in interface KeyedObjectPool<K,E extends Poolable>key - public boolean containsKey(K key)
containsKey in interface KeyedObjectPool<K,E extends Poolable>key - public boolean containsValue(E e)
containsValue in interface KeyedObjectPool<K,E extends Poolable>e - public Set<K> keySet()
keySet in interface KeyedObjectPool<K,E extends Poolable>public Collection<E> values()
values in interface KeyedObjectPool<K,E extends Poolable>public boolean equals(Object obj)
Copyright © 2021. All rights reserved.