Package cn.sliew.milky.common.recycler
Class DequeRecycler<T>
- java.lang.Object
-
- cn.sliew.milky.common.recycler.DequeRecycler<T>
-
- All Implemented Interfaces:
Recycler<T>
- Direct Known Subclasses:
ConcurrentDequeRecycler
public class DequeRecycler<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description DequeRecycler(Source<T> source, Deque<T> deque, int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterRelease(boolean recycled)Called after a release.protected booleanbeforeRelease()Called before releasing an object, returns true if the object should be recycled and false otherwise.Value<T>obtain()
-
-
-
Field Detail
-
source
protected final Source<T> source
-
-