Class ConcurrentDequeRecycler<T>

org.elasticsearch.common.recycler.DequeRecycler<T>
org.elasticsearch.common.recycler.ConcurrentDequeRecycler<T>
All Implemented Interfaces:
Recycler<T>

public class ConcurrentDequeRecycler<T> extends DequeRecycler<T>
A . This implementation is thread-safe.
  • 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
    Modifier and Type
    Field
    Description
    protected Recycler.C<T>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConcurrentDequeRecycler​(Recycler.C<T> c, int maxSize)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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.
     

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Field Details

  • Constructor Details

    • ConcurrentDequeRecycler

      public ConcurrentDequeRecycler(Recycler.C<T> c, int maxSize)
  • Method Details