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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
afterRelease
(boolean recycled) Called after a release.protected boolean
Called 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:DequeRecycler
Called before releasing an object, returns true if the object should be recycled and false otherwise.- Overrides:
beforeRelease
in classDequeRecycler<T>
-
afterRelease
protected void afterRelease(boolean recycled) Description copied from class:DequeRecycler
Called after a release.- Overrides:
afterRelease
in classDequeRecycler<T>
-