Class ArrayBlockingStream<T>

java.lang.Object
fr.inria.rules.integraal.util.stream.AbstractCloseableIterator<T>
fr.inria.rules.integraal.util.stream.ArrayBlockingStream<T>
Type Parameters:
T - type of the elements
All Implemented Interfaces:
CloseableIterator<T>, CloseableIteratorWithoutException<T>, InMemoryStream<T>, Closeable, AutoCloseable, Iterator<T>

public class ArrayBlockingStream<T> extends AbstractCloseableIterator<T> implements InMemoryStream<T>
Concurrent structure for read/write in a set.
Author:
Florent Tornil
  • Constructor Details

    • ArrayBlockingStream

      public ArrayBlockingStream(int bufferSize)
      Creates an array-backed blocking stream.
      Parameters:
      bufferSize - size of the buffer
  • Method Details