Class BoundedBuffer<E>

java.lang.Object
com.github.benmanes.caffeine.cache.StripedBuffer<E>
com.github.benmanes.caffeine.cache.BoundedBuffer<E>
Type Parameters:
E - the type of elements maintained by this buffer
All Implemented Interfaces:
Buffer<E>

final class BoundedBuffer<E> extends StripedBuffer<E>
A striped, non-blocking, bounded buffer.
  • Field Details

  • Constructor Details

    • BoundedBuffer

      BoundedBuffer()
  • Method Details

    • create

      protected Buffer<E> create(E e)
      Description copied from class: StripedBuffer
      Creates a new buffer instance after resizing to accommodate a producer.
      Specified by:
      create in class StripedBuffer<E>
      Parameters:
      e - the producer's element
      Returns:
      a newly created buffer populated with a single element