Package | Description |
---|---|
org.elasticsearch.common.recycler |
Modifier and Type | Method and Description |
---|---|
static <T> Recycler.Factory<T> |
Recyclers.dequeFactory(Recycler.C<T> c,
int limit)
Return a recycler based on a deque.
|
static <T> Recycler.Factory<T> |
Recyclers.softFactory(Recycler.Factory<T> factory)
Create a recycler that wraps data in a SoftReference.
|
Modifier and Type | Method and Description |
---|---|
static <T> Recycler<T> |
Recyclers.concurrent(Recycler.Factory<T> factory) |
static <T> Recycler<T> |
Recyclers.concurrent(Recycler.Factory<T> factory,
int concurrencyLevel)
Create a concurrent implementation that can support concurrent access from
concurrencyLevel threads with little contention. |
static <T> Recycler<T> |
Recyclers.soft(Recycler.Factory<T> factory)
Create a recycler that is wrapped inside a soft reference, so that it cannot cause
OutOfMemoryError s. |
static <T> Recycler.Factory<T> |
Recyclers.softFactory(Recycler.Factory<T> factory)
Create a recycler that wraps data in a SoftReference.
|
Copyright © 2009–2015. All rights reserved.