| Package | Description |
|---|---|
| io.druid.collections |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Closeable> |
ReferenceCountingResourceHolder.fromCloseable(T object) |
ReferenceCountingResourceHolder<T> |
BlockingPool.take()
Take a resource from the pool, waiting if necessary until an element becomes available.
|
ReferenceCountingResourceHolder<T> |
BlockingPool.take(long timeoutMs)
Take a resource from the pool, waiting up to the
specified wait time if necessary for an element to become available.
|
ReferenceCountingResourceHolder<List<T>> |
BlockingPool.takeBatch(int elementNum)
Take resources from the pool, waiting if necessary until the elements of the given number become available.
|
ReferenceCountingResourceHolder<List<T>> |
BlockingPool.takeBatch(int elementNum,
long timeoutMs)
Take resources from the pool, waiting up to the
specified wait time if necessary for elements of the given number to become available.
|
Copyright © 2011–2017. All rights reserved.