public class ConcurrentDequeRecycler<T> extends DequeRecycler<T>
Recycler.C<T>, Recycler.Factory<T>, Recycler.V<T>
Modifier and Type | Field and Description |
---|---|
protected Recycler.C<T> |
c |
Constructor and Description |
---|
ConcurrentDequeRecycler(Recycler.C<T> c,
int maxSize) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterRelease(boolean recycled)
Called after a release.
|
protected boolean |
beforeRelease()
Called before releasing an object, returns true if the object should be recycled and false otherwise.
|
void |
close() |
Recycler.V<T> |
obtain() |
Recycler.V<T> |
obtain(int sizing) |
protected final Recycler.C<T> c
public ConcurrentDequeRecycler(Recycler.C<T> c, int maxSize)
public void close()
public Recycler.V<T> obtain(int sizing)
protected boolean beforeRelease()
DequeRecycler
beforeRelease
in class DequeRecycler<T>
protected void afterRelease(boolean recycled)
DequeRecycler
afterRelease
in class DequeRecycler<T>
public Recycler.V<T> obtain()
Copyright © 2009–2017. All rights reserved.