Class ConcurrentDequeRecycler<T>

  • All Implemented Interfaces:, java.lang.AutoCloseable, Releasable, Recycler<T>

    public class ConcurrentDequeRecycler<T>
    extends DequeRecycler<T>
    A Recycler implementation based on a concurrent Deque. This implementation is thread-safe.
    • Field Summary

      Modifier and Type Field Description
      protected Recycler.C<T> c  
    • Method Summary

      Modifier and Type Method 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait