Class ConcurrentDequeRecycler<T>
java.lang.Object
org.elasticsearch.common.recycler.DequeRecycler<T>
org.elasticsearch.common.recycler.ConcurrentDequeRecycler<T>
- All Implemented Interfaces:
Recycler<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.recycler.Recycler
Recycler.C<T>, Recycler.Factory<T>, Recycler.V<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterRelease(boolean recycled)Called after a release.protected booleanCalled before releasing an object, returns true if the object should be recycled and false otherwise.obtain()
-
Field Details
-
c
-
-
Constructor Details
-
ConcurrentDequeRecycler
-
-
Method Details
-
obtain
-
beforeRelease
protected boolean beforeRelease()Description copied from class:DequeRecyclerCalled before releasing an object, returns true if the object should be recycled and false otherwise.- Overrides:
beforeReleasein classDequeRecycler<T>
-
afterRelease
protected void afterRelease(boolean recycled)Description copied from class:DequeRecyclerCalled after a release.- Overrides:
afterReleasein classDequeRecycler<T>
-