E - public interface ObjectPool<E extends Poolable> extends Pool
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ObjectPool.MemoryMeasure<E>
The Interface MemoryMeasure.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
add(E e,
boolean autoDestroyOnFailedToAdd) |
boolean |
add(E e,
long timeout,
TimeUnit unit) |
boolean |
add(E e,
long timeout,
TimeUnit unit,
boolean autoDestroyOnFailedToAdd) |
boolean |
contains(E e) |
E |
take()
Retrieves and removes the head of this queue, or returns null if this queue is empty.
|
E |
take(long timeout,
TimeUnit unit) |
boolean add(E e)
e - boolean add(E e, boolean autoDestroyOnFailedToAdd)
e - autoDestroyOnFailedToAdd - boolean add(E e, long timeout, TimeUnit unit) throws InterruptedException
e - timeout - unit - InterruptedException - the interrupted exceptionboolean add(E e, long timeout, TimeUnit unit, boolean autoDestroyOnFailedToAdd) throws InterruptedException
e - timeout - unit - autoDestroyOnFailedToAdd - InterruptedException - the interrupted exceptionE take()
E take(long timeout, TimeUnit unit) throws InterruptedException
timeout - unit - InterruptedException - the interrupted exceptionboolean contains(E e)
e - Copyright © 2021. All rights reserved.